addition of 2 numbers in html template using javascript code example Example: add two numbers javascript var x = 2 + 3; //x = 5