Logo

Programming-Idioms

History of Idiom 55 > diff from v39 to v40

Edit summary for version 40 by :
[JS] "num" did not exist in the context

Version 39

2016-02-16, 18:04:18

Version 40

2016-02-16, 20:28:42

Idiom #55 Convert integer to string

Create the string representation s (in radix 10) of integer value i.

Idiom #55 Convert integer to string

Create the string representation s (in radix 10) of integer value i.

Code
var s = num.toString();
Code
var num = 10

var s = num.toString();
Comments bubble
clarfication
Doc URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString
Doc URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString
Demo URL
https://jsfiddle.net/kcfh1qbm/
Demo URL
https://jsfiddle.net/kcfh1qbm/