how to create a variable with a operator in javascript 1

how to create a variable with a operator in javascript

var example = 2 + 1;
var exampleTwo = 2 - 4;
//this is how to end a variable with plus and minus signs

Here is what the above code is Doing:
1. We’re creating a variable called example and setting it equal to 2 + 1.
2. We’re creating a variable called exampleTwo and setting it equal to 2 – 4.

Similar Posts