function add(a, b) { var sum = parseFloat(a) + parseFloat(b); code example Example: add two numbers javascript var x = 2 + 3; //x = 5