Learn the basics of JavaScript with our free online video courses.
This crash course video covers the basics of Javascript you'll need to be able to create variables in JavaScript, and is perfect for beginners who want to learn coding whilst seeing it in action.
This video covers:
How To Create A Variable In JavaScript
Naming A Variable In JavaScript
Bonus Content:
Declare Multiple Variables At Once
You can declare multiple variables at once by stating the declaration keyword, followed then by the names and values of the variables, separated by commas.
let dog = "Poodle", fruit = "Apple", age = 7;
The statement ending semicolon should be after the last declared variable in the list.
Typical Naming Conventions
The dollar sign is often used as an alias for the main function in a JavaScript library. For example, in jQuery, the main function $ is used to select HTML elements (ei. $("p"); means "select all p elements"). Similarly, the underscore is not typically used for naming in JavaScript outside of it being used as an alias for private (hidden) variables.
Software used in video:
PlayCode: https://playcode.io/
Alternate recommended text editors to practise coding with:
Notepad++: https://notepad-plus-plus.org/
Visual Studio Code: https://code.visualstudio.com/
HTML and CSS is not used during this video.
Our CSS crash course: • Chairbear | Learn CSS In Under 15 Minutes ...
Our HTML crash course: • Chairbear | Learn HTML In Under 10 Minutes
Many of our courses are available in Dark Mode, to allow you to continue your learning without having to worry about bright screens! This video is suitable for night time viewing.
On this page of the site you can watch the video online Chairbear | Learn JavaScript | Create Variables with a duration of hours minute second in good quality, which was uploaded by the user Chair Bear 28 July 2020, share the link with friends and acquaintances, this video has already been watched 26 times on youtube and it was liked by 0 viewers. Enjoy your viewing!