var sum = 5;
var totalAmount = 5;
var greetingMessage = "Welcome to AvaThemes!";
//You can replace our message inside the quotes with your own
The first line declares the variable and assigns it a value, while the second line creates a pop-up alert with the message we defined in the first line. The third line is a single line comment. Go ahead, try it yourself! Pressing Control + Shift + J on Windows computers, or Command + Option + J on Macs will open up the console that enables you to see any bugs in the code. If you’ve done everything like we showed you, there shouldn’t be any alerts in the console.
Next time, we’ll take a closer look at operators and objects, as well as some basic functions. Stay tuned!