Introduction: The Assignment operator
The simple assignment operator
let helloWorld = "Hello, world!";
Right in the middle we have the equality sign, which in this case tells the interpreter that the variable, called "helloWorld", should now contain the text string "Hello, world!".
However, the assignment operator isn't just used when declaring a variable, but also when you want to change the value of this variable later on:
let helloWorld = "Hello, world!"; alert(helloWorld); helloWorld = "Hello, universe!"; alert(helloWorld);
This was a brief introduction to operators in general and the simple assignment operator specifically. There are other ways of assigning values, e.g. the addition assignment operator, but we'll get to that in one of the coming articles.