请看下面的代码:
2.toString(); // error
2..toString(); // "2"
2...toString(); // error
我想知道为什么2..toString()
可以无错误运行,并且它的运行会发生什么?
有人能解释一下吗?