Created
March 20, 2012 16:45
-
-
Save gonzaloruizdevilla/2138095 to your computer and use it in GitHub Desktop.
Integer to string. Good way
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2..toString(); // el segundo punto se reconoce correctamente | |
2 .toString(); // fíjate en el espacio a la izquierda del punto | |
(2).toString(); // los paréntesis fuerzan a que el número 2 se evalúe primero |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment