Programming with ECMAScript 2015 : Variables and Scopes | packtpub.com
25 views · Published 12 May 2017 · 13:13 · Indexed 12 November 2026
Channel: Packt · 2017 · Science & Technology
This playlist/video has been uploaded for Marketing purposes and contains only selective videos. For the entire video course and code, visit [http://bit.ly/2pFcFKg]. 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 http://bit.ly/1KYwKQ5 Find us on Facebook -- http://www.facebook.com/Packtvideo Follow us on Twitter - http://www.twitter.com/packtvideo
More from this channel
-
4:13
Fast Track to Adobe Captivate 6 Tutorial: Inserting New Slides | packtpub.com
-
3:24
UDK Game Programming with UnrealScript Tutorial: Configuring Kismet | packtpub.com
-
7:48
Building a Website with Drupal Tutorial: Content Types and Location | packtpub.com
-
2:40
Getting Started with Magento Tutorial: Introduction to Payment Methods | packtpub.com
-
3:25
Getting Started with Apache Maven Tutorial: Introducing Maven Plugins | packtpub.com
-
2:55
Moodle for Mobile Learning Tutorial: LTI (Learning Tool Interoperability) | packtpub.com
-
3:56
Moodle for Mobile Learning Tutorial: Embedding Twitter Feeds in Moodle | packtpub.com
-
4:27
XNA 3D Game Development By Example Tutorial: Drawing Sprites | packtpub.com