alert function displays an alert box with some text we pass in.
The text comes from the string argument.
For instance, can write:
and ‘hello world’ would be displayed.
It is a global function, so it’s a property of
window.alert is the same as
The short form is fine for inclusion in our code.
A variable with the given name can only be declared once.
They can be stored in variables. Variables are names that we choose and assign values to so that we can store them for use later.
For example, we can write:
let name = "james";
to store names.