Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="description" content="Variables">
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>Things in Erik's head</title>
- </head>
- <body>
- /*
- VARIABLES
- A Variable is a container for a value.
- That value can be a wide range of things.
- It can be anything from a Number, String or a Boolean to and Array, Object or other data types. A Variable's value can be changed to any of those values at any time given new assignments.
- Variables go through roughly 2 stages: declaration and initialization.
- Therea are a number of ways to declare your variable. the most common way is to use the word "var" followed by the identifier of the name you decide to give it.
- */
- // 1. Declaration //
- var myVariable;
- /* Currently, the variable myVariable has a value of undefined because it was declared but not assigned or INITIALIZED to any value
- */
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement