Javascript Tutorial – 2 – Basic Syntax




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


39 responses to “Javascript Tutorial – 2 – Basic Syntax”

  1. this is dependant upon if you want an "external script" to refer to in your HTML documents, which can be good as it makes it compiled and more "tidy" (for some) but it makes it slower ๐Ÿ™‚

  2. k, first off, parenthesis are (these!), not "these" or 'these'.
    Second, title is 'Basic Syntax', explain syntax. Talk about strings, methods, functions, variables…etc in a fundamental scope, for instance:
    'in javaScript u can use methods which are built-in functions for accomplishing one goal or another. Methods, like calling functions, take parameters which can b strings (which can b in either "double quotes or 'single tics'"), numbers, or objects (which is what everything is in javaScript)'

  3. @Agreed, except that, when you said, "Apostrophes are ' '…". While it is the same key as the apostrophe key (or even 'foot mark'), and while in programming one usually uses 'straight' as opposed to curly quotes, the pair are actually 'single quotes'.

    In a similar way, double quotes (" "), are refered to as such and not as 'inch marks".

  4. @UniversalHere Click on save as, change the name to index(that's what he did), choose [ HyperText Markup Language] then save it anywhere you want as long as you can remember it later. That's all

  5. @46ace The technical terms are: parentheses (…), double quotes: "…", and single quotes '…' . This is an apostrophe: โ€™ (not the same as ' if you view with a larger font than youtube provides)

  6. @MasterA55a55in First, it's called notepad++, it's like notepad, but with plus and minus buttons, the name is a reference to C++, because the editor is very similar (you actually CAN edit C++ in the program).

    Second, you CAN do that, the syntax is just a bit different. when typing script into the address bar, it needs a "protocol" and the closest you can get to that here is "javascript:".
    In this case, you want to type " javascript:document.write ('Foo Bar Baz'); alert('hello World') "

Leave a Reply