//Adding integers in jQuery var a = parseInt("1"); //use the parseInt() to convert strings to integers var b = 3; var c = 5; var d = a + b + c; document.write(d); //returns 9