filmov
tv
Programming with ECMAScript 2015 : Variables and Scopes | packtpub.com

Показать описание
This playlist/video has been uploaded for Marketing purposes and contains only selective videos.
Variables and Scopes are two important things to understand in JavaScript programming. Scope deals with the availability and access of a variable within your code blocks. Scope in JavaScript is function scoped and it leads to a lot of confusion.
• ECMAScript introduces 2 new variable declaration keywords: let and const. These new keywords can be used to declare variables in your code
• “let” allows you to create variables whose value can be changed later. “const” allows you to create variables whose value cannot be changed.
• “let” and “const” declared variables will be block scopes, compared to “var” declared variables which are function scoped. It is advised to use let or const as against var.
For the latest Web development video tutorials, please visit
Variables and Scopes are two important things to understand in JavaScript programming. Scope deals with the availability and access of a variable within your code blocks. Scope in JavaScript is function scoped and it leads to a lot of confusion.
• ECMAScript introduces 2 new variable declaration keywords: let and const. These new keywords can be used to declare variables in your code
• “let” allows you to create variables whose value can be changed later. “const” allows you to create variables whose value cannot be changed.
• “let” and “const” declared variables will be block scopes, compared to “var” declared variables which are function scoped. It is advised to use let or const as against var.
For the latest Web development video tutorials, please visit