Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript use numbers as objects

2..toString(); // the second point is correctly recognized
2 .toString(); // note the space left to the dot
(2).toString(); // 2 is evaluated first
Source by bonsaiden.github.io #
 
PREVIOUS NEXT
Tagged: #javascript #numbers #objects
ADD COMMENT
Topic
Name
1+2 =