JS: Convert String, Number
String to Integer
String to Decimal Number
Number to String
Note: JavaScript automatically convert number to string. Adding a string to number results string.
let x = 3 + "4"; console.log(x === "34"); console.log(typeof x === "string");
JavaScript, String
- JS: String Overview
- JS: Quote String
- JS: Template String
- JS: String Escape Sequence
- JS: Unicode Escape Sequence
- JS: String Operations
- JS: Iterate String
- JS: String Code Unit
- JS: Count Chars in String π
- JS: Tagged Template String
- JS: Regex Functions
- JS: Convert String, Number
- JS: String Object
- JS: String Constructor
- JS: String.prototype
JavaScript, Number
- JS: Number
- JS: Assignment Operators
- JS: Math Operators
- JS: Number Comparison Operators
- JS: Convert String, Number
- JS: Convert Decimal, Hexadecimal
- JS: Convert Decimal, Binary
- JS: Format Number
- JS: Random Integer Range Function π
- JS: Number Object
- JS: Number Constructor
- JS: Number.prototype
- JS: Math