So, you have been working with variables in all the other languages with which we have worked. Hopefully, these won't feel scary or foreign to you now.
What do they look like in JavaScript?
var favoriteNumber = 13;
var favoriteColor = "blue";
var myAge;
myAge = 79;
var red,green,blue;
red = "#FF0000";
green = "#00FF00";
blue = "#0000FF";
As you stated above, there are several different ways in which you can declare and assign values to your variables. They are all valid, and it just depends on when you want to give them a value or if they will be assigned later.
To use them in your HTML page, you can do something like this.
<html>
<title>Variables</title>
<head>
<script>
var favoriteColor = "blue";
</script>
</head>
<body>
<span id="myTag">This is my favorite text</span>
</body>
<script>
document.getElementById("myTag").innerHTML = "Favorite Color " + favoriteColor;
</script>
</html>
There are three things to notice here.
See the Pen JS - Variables by Michael Cassens (@retrog4m3r) on CodePen.