Programming-Idioms

History of Idiom 22 > diff from v94 to v95

Edit summary for version 95 :
[JS] Variable name s

Version 94

2020-02-29, 21:04:44

Version 95

2020-04-03, 09:47:58

Idiom #22 Convert string to integer

Extract integer value i from its string representation s (in radix 10)

Illustration

Idiom #22 Convert string to integer

Extract integer value i from its string representation s (in radix 10)

Illustration
Extra Keywords
int base conversion
Extra Keywords
int base conversion
Code
const i = +"12"
Code
const i = +s