Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript strings vs numbers

let message = 'hello'; //string
let sum = 5;           //number
let x = -15.25;        //number
let year = "2021";     //string
Comment

js string vs number difference

let x = 2;       // number
let y = '2';     // string

console.log(x + x); // 4
console.log(x + y); // 22
Comment

PREVIOUS NEXT
Code Example
Javascript :: getx remove all previous routes 
Javascript :: sinon chaining method 
Javascript :: new date in interpolation angular 
Javascript :: emit value from node server 
Javascript :: hidden vue js 
Javascript :: Getting data from one axios to another in componentDidMount 
Javascript :: position of element related to parent div in jquery 
Javascript :: 4.7.1. The String Operator +¶ 
Javascript :: The syntax of ScrollBy() methods 
Javascript :: 3850 mod 17 
Javascript :: correctly type checking objects in javascript 
Javascript :: enquirer confirm 
Javascript :: 8.2. Working With Arrays // Undefined 
Javascript :: vs code { key to to go brace 
Javascript :: facebook graph X-Hub-Signature 
Javascript :: component not registered correctly 
Javascript :: useSate object 
Javascript :: check if anagram 
Javascript :: javascript get local timezone 
Javascript :: The Works of Archimedes 
Javascript :: react native return null 
Javascript :: window.getselection outside 
Javascript :: CSS overflow table row positioning 
Javascript :: https://web.roblox.com/users/20732870/profile 
Javascript :: create dots in carousel react js bootraps 
Javascript :: change span value according to textfierld value in jquery 
Javascript :: libfluidsynth npm 
Javascript :: react currency format 
Javascript :: paypal react native 
Javascript :: veu js vs angular vs react features 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =