25 juli 2012

Javascript weird but valid toString usage

You can have a string representation of a float by typing the following:
3..toString(); // "3"

Geen opmerkingen:

Een reactie posten