add two numbers squared in js code example Example 1: add two numbers javascript var x = 2 + 3; //x = 5 Example 2: how to add 2 numbers together in javascript var x = +y + +z;