Number to string conversion
- toString
What if you have a number but would like to use it as a sting?
> 1+2
3
> 1+String(2)
12
> a = 1
> b = 2
> a + b
3
> b.toString()
> a + b
'12'
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
What if you have a number but would like to use it as a sting?
> 1+2
3
> 1+String(2)
12
> a = 1
> b = 2
> a + b
3
> b.toString()
> a + b
'12'