SHARE

Hey all, this JavaScript tutorial for beginners will introduce the concept of variable scope. Variables can have either global or local scope.

A global variable is initialized at the ‘top-level’ of your document, and can be used anywhere within your document after it has been declared. A local variable has only local scope, and can only be used within the function in which it was initialized.

As always, fire away with any questions 🙂

SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1

========== JavaScript for Beginners Playlist ==========

https://www.youtube.com/playlist?list=PL4cUxeGkcC9i9Ae2D9Ee1RvylH38dKuET

========== CSS for Beginners Playlist ==========

https://www.youtube.com/playlist?list=PL4cUxeGkcC9gQeDH6xYhmO-db2mhoTSrT

========== HTML for Beginners Playlist ==========

https://www.youtube.com/playlist?list=PL4cUxeGkcC9ibZ2TSBaGGNrgh4ZgYE6Cc

========== The Net Ninja ============

For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk

========== Social Links ==========

Twitter – @TheNetNinja – https://twitter.com/thenetninjauk

5 COMMENTS

  1. what do i use this all for you have not told me yet and i watched 20 video's, do I need to watch these to get better insight and working knowledge on the design of webpages?

  2. can u please explain where to put functions and variables a bit better and what the difference between console.log and document.write is

LEAVE A REPLY

Please enter your comment!
Please enter your name here