Skip to content

Commit c3da859

Browse files
committed
add trickerino
1 parent 7c11894 commit c3da859

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

js/tricks.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,9 @@ const handler = {
127127
128128
```
129129

130+
## Two dots to access number prototype
131+
132+
240.toString(2) -> SyntaxError
133+
240..toString(2) -> '11110000'
134+
135+
The parser expects a number after the first dot. And omitting the 0 is a shorthand.

0 commit comments

Comments
 (0)