Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call number method with two dots in javascript? [duplicate]

Tags:

javascript

Why

123.toString()

throws an SyntaxError

while

123..toString()

is not?

like image 780
aztack Avatar asked Oct 24 '25 00:10

aztack


1 Answers

The first . you type in a Number literal is the decimal point.

like image 67
Quentin Avatar answered Oct 26 '25 14:10

Quentin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!