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