Variable Scoping In Javascript ES6 || Javascript ES6 tutorial for beginners || Time For Code

preview_player
Показать описание
Variable Scoping In Javascript ES6 || Javascript ES6 tutorial for beginners || Time For Code
#variablescopingines6 #javascripttutorialforbeginners #timeforcode
#javascripttutorialadvanced
#javascripttutorialcomplete
#javascripttutorialcrashcourse
#javascripttutorialforprogrammers
#basicsofjavascripttutorial

** JavaScript Variables **
JavaScript variables are containers for storing data values.

In this example, x, y, and z, are variables, declared with the var keyword.

Using let and const (ES6)
Before 2015, using the var keyword was the only way to declare a JavaScript variable.

The 2015 version of JavaScript (ES6) allows the use of the const keyword to define a variable that cannot be reassigned, and the let keyword to define a variable with restricted scope.

Because it is a little complicated to describe the difference between these keywords, and because they are not supported in older browsers, the first part of this tutorial will most often use var.

JavaScript Identifiers
All JavaScript variables must be identified with unique names.

These unique names are called identifiers.

Identifiers can be short names (like x and y) or more descriptive names (age, sum, totalVolume).

The general rules for constructing names for variables (unique identifiers) are:

Names can contain letters, digits, underscores, and dollar signs.
Names must begin with a letter
Names can also begin with $ and _ (but we will not use it in this tutorial)
Names are case sensitive (y and Y are different variables)
Reserved words (like JavaScript keywords) cannot be used as names

********** Tutorial *************

JavaScript Tutorial
JavaScript is the world's most popular programming language.

JavaScript is the programming language of the Web.

JavaScript is easy to learn.

This tutorial will teach you JavaScript from basic to advanced.

Why Study JavaScript?
JavaScript is one of the 3 languages all web developers must learn:

1. HTML to define the content of web pages

2. CSS to specify the layout of web pages

3. JavaScript to program the behavior of web pages

This tutorial covers every version of JavaScript:

The Original JavaScript ES1 ES2 ES3 (1997-1999)
The First Main Revision ES5 (2009)
The Second Revision ES6 (2015)
The Yearly Additions (2016, 2017, 2018)

Everything is up to you.

If you are struggling, take a break, or re-read the material.

Commonly Asked Questions
How do I get JavaScript?
Where can I download JavaScript?
Is JavaScript Free?
You don't have to get or download JavaScript.

JavaScript is already running in your browser on your computer, on your tablet, and on your smart-phone.

JavaScript is free to use for everyone.

TAG : javascript tutorial for beginners
javascript tutorial advanced
javascript tutorial complete
javascript tutorial crash course
javascript tutorial for programmers
basics of javascript tutorial

Рекомендации по теме