Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to sum two var in jquery

var a = 1;
var b = 2;
var c = (+a) + (+b);
alert(c); //or whatever you want
Comment

PREVIOUS NEXT
Code Example
Javascript :: electron no menu bar 
Javascript :: jquery confirm dialog 
Javascript :: cheerio load from file 
Javascript :: js select element inside of div 
Javascript :: keypress javascript 
Javascript :: pushing to an array 
Javascript :: javascript synchronous wait 
Javascript :: javascript check if string is number 
Javascript :: js get meta-tag name 
Javascript :: js remove special characters 
Javascript :: jest testmatch specific folder 
Javascript :: trigger click on checkbox jquery 
Javascript :: async storage get item 
Javascript :: js check tab active 
Javascript :: express body-parser is depreciated 
Javascript :: ant design not working in react js 
Javascript :: free robux javascript 
Javascript :: js focus textarea 
Javascript :: a href javascript void 
Javascript :: ytdl-core 
Javascript :: sass config.json vs code 
Javascript :: javascript detect backspace 
Javascript :: generate random whole number between 2 javascript 
Javascript :: jquery index of element 
Javascript :: npm for node types 
Javascript :: react onclick function 
Javascript :: is_int js 
Javascript :: js invert color 
Javascript :: yarn build react 
Javascript :: get execution time in javascript 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =