add value in variable javascript code example Example: add variables in javascript var a = 5; var b = 2; var c = a + b;