Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="description" content="Variables">
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width">
  7. <title>Things in Erik's head</title>
  8. </head>
  9. <body>
  10. /*
  11. VARIABLES
  12.  
  13. A Variable is a container for a value.
  14. That value can be a wide range of things.
  15. 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.
  16. Variables go through roughly 2 stages: declaration and initialization.
  17. 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.
  18. */
  19.  
  20. // 1. Declaration //
  21. var myVariable;
  22.  
  23. /* Currently, the variable myVariable has a value of undefined because it was declared but not assigned or INITIALIZED to any value
  24. */
  25.  
  26.  
  27. </body>
  28. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement