Merge branch 'master' into patch-1
This commit is contained in:
commit
57cc857aab
3 changed files with 14 additions and 16 deletions
|
@ -411,8 +411,8 @@ So, "49" is an integer property name, because when it's transformed to an intege
|
|||
```js run
|
||||
// Math.trunc is a built-in function that removes the decimal part
|
||||
alert( String(Math.trunc(Number("49"))) ); // "49", same, integer property
|
||||
alert( String(Math.trunc(Number("+49"))) ); // "49", not same ⇒ not integer property
|
||||
alert( String(Math.trunc(Number("1.2"))) ); // "1", not same ⇒ not integer property
|
||||
alert( String(Math.trunc(Number("+49"))) ); // "49", not same "+49" ⇒ not integer property
|
||||
alert( String(Math.trunc(Number("1.2"))) ); // "1", not same "1.2" ⇒ not integer property
|
||||
```
|
||||
````
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue