Successfully added
JavaScript
by Patrik
Definition of var
The var statement declares a variable.
Variables are containers for storing information.
Creating a variable in JavaScript is called "declaring" a variable:
var message;
After the declaration, the variable is empty (it has no value).
To assign a value to the variable, use the equal sign:
message = "Hello";
You can also assign a value to the variable when you declare it:
var message = "Hello";
Referenced in:
Comments(4)
zithromax-250mg
2/2/2023 7:22:31 PMdoxycycline-400mg
1/31/2023 5:43:01 AMprednisoneM
1/11/2023 1:14:08 PMlasixtep
12/26/2022 3:09:21 PM