string minus number javascript code example Example: javascript 1 + "1" console.log(10+"1"); //101 console.log(10-"1"); //9