JavaScript Concepts - The Type System: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Concepts") |
|||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
* [[JavaScript Concepts#Subjects|Concepts]] | * [[JavaScript Concepts#Subjects|Concepts]] | ||
=Conversion of a String to Int= | |||
<syntaxhighlight lang='javascript'> | |||
var a = '1'; | |||
var b = parseInt(a) + 1; | |||
console.log(b) | |||
2 | |||
</syntaxhighlight> |
Latest revision as of 02:15, 10 December 2020
Internal
Conversion of a String to Int
var a = '1';
var b = parseInt(a) + 1;
console.log(b)
2