JavaScript Math

Math in Javascript is written just like math in real life - if you wanted to add "5" and "7" you would just write: "5 + 7". The difference here, though, is that the code doesn't know what to do with your answer (12). The way this information would be stored would be by assigning it to a variable - which we will cover in the next section

Next
Next

JavaScript Variables