Beginner JavaScript Tutorial – 5 – Using Variables with Strings




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


44 responses to “Beginner JavaScript Tutorial – 5 – Using Variables with Strings”

  1. It Does Not Work For Me :(, Look: My coding: "<script type="text/javascript">
                                                                                              var name = "Bucky";
                                                                                              var age = 24;
                                                                                              document.write(name + " is my name");
                                                                                              </script>This is wat I get: This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <script type="text/javascript">
    var name = "Bucky"; var age = 24; document.write(name + " is my name");
    </script>, I'm using google chrome

  2. Maybe I'm not too far in programming to understand this, but it seems like it would take less time to write, "Bucky is my name" instead of (name + " is my name").. etc etc. i'm assuming these are mostly for examples? Where as variables are used to help with common written things like numbers or what not?

    Or I could be way off and don't know what the hell I'm talking about.. Probably the latter

Leave a Reply