take number from input and add in javascript code example Example: how to add 2 numbers together in javascript var x = +y + +z;