create int in javascript code example Example: how to declare an int in javascript var x = 5; var y = 6; var z = x + y;