JavaScript Concepts - The Type System

From NovaOrdis Knowledge Base
Revision as of 02:15, 10 December 2020 by Ovidiu (talk | contribs) (→‎Conversion of a String to Int)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Conversion of a String to Int

var a = '1';
var b = parseInt(a) + 1;
console.log(b)
2