Javascript beginner tutorial 4 – Variables




This video is all about variables. I talk about what a variable is, how to name a variable, how to declare a variable, and how to assign a value to a variable. Everything a JavaScript beginner needs to know about variables.

Sponsored by DevMountain. Get yourself career ready, check out their website: http://goo.gl/enNbQV

Don’t forget to subscribe:
http://www.youtube.com/user/QuentinWatt

For collaborations and business inquiries, please contact via Channel Pages: http://ChannelPages.com/QuentinWatt Social links:
————————————————————-
Add me on twitter:

facebook group:
https://www.facebook.com/quentin.watt
————————————————————-

Original source


23 responses to “Javascript beginner tutorial 4 – Variables”

  1. Names can contain letters, digits, underscores, and dollar signs.
    Names must begin with a letter
    Names can also begin with $ and _ (but we will not use it in this tutorial)
    Names are case sensitive (y and Y are different variables)
    Reserved words (like JavaScript keywords) cannot be used as names

  2. why is it showing var myVariable = 20; document.write(myVariable); instead of only 20?

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8*/>
    <title> JavaScript – Variables </title>
    <script type="text/javascript">
    var myVariable = 20;

    print(myVariable);

    </script>
    </head>

    <body>

    </body>

    </html>

  3. I have been using Codeacademy which is a good tutorial. However, there is a lack of explanation at time. These YouTube videos by Mr. Watt are very helpful. It explains why I have been doing what I've been doing in the other tutorial.

Leave a Reply