Beginner JavaScript Tutorial – 4 – Different Types of Variables




Facebook – https://www.facebook.com/TheNewBoston-464114846956315/
GitHub – https://github.com/buckyroberts
Google+ – https://plus.google.com/+BuckyRoberts
LinkedIn – https://www.linkedin.com/in/buckyroberts
reddit – https://www.reddit.com/r/thenewboston/
Support – https://www.patreon.com/thenewboston
thenewboston – https://thenewboston.com/
Twitter – https://twitter.com/bucky_roberts

Original source


41 responses to “Beginner JavaScript Tutorial – 4 – Different Types of Variables”

  1. or you could do this instead of your escape characters

    var tuna = 'john said, "boy do i love bessie"'

    and that will work just fine, all your doing is using single quotation marks at the beginning and using the normal quotation marks where needed. just a lil hint for yall

  2. Do variables have type? 

    Javascript doesn't have variables. Variables exist in languages which assign actual memory addresses. Javascript has names.

    In Javascript, values have type. Values are instances of prototype objects of the Javascript Virtual Computer.

    it's likely better to think this way:

    1) Names label data. 
    2) Data have types.

    The JVC knows five types:

    Numbers:  42, 3.14159
    Boolean:  true / false
    Strings: "Howdy"
    null: a special keyword denoting a null value
    undefined: a top-level property whose value is undefined

Leave a Reply