Variable scope, lexical scope and code blocks are things every JavaScript developer works with every day. In this tutorial, you will learn about them all. You will learn about variable scope and how it works with different types of variables. After that, you will learn about lexical scope and code blocks.
Category: JavaScript
Posts Tagged ‘JavaScript’.
I’m pleased to present below all posts tagged with ‘JavaScript’.
Getting Started With JavaScript Constructor Functions
JavaScript offers multiple ways to create objects. These ways include object literals, Object(), classes and constructor functions. This tutorial will show you the third option. You will learn about what constructor function are, how they work, and how to use them to create objects.
Primitive Values, Objects and References in JavaScript Made Simple
Primitive data types, values, objects and references are among the most misunderstood topics in JavaScript. They can cause a lot of headaches. In this tutorial, you will learn about primitive data types, values, objects, references, the differences between them and how they work.
How to Freeze an Object in JavaScript: Object.freeze(), Object.seal() & More
In JavaScript, it is possible to freeze an object, to make it immutable, and prevent it from being changed. This tutorial will show you how to do it. You will learn how to freeze an object in JavaScript with Object.freeze(), seal it with Object.seal(), prevent extending it and more.
7 JavaScript ES2017 Features to Learn
The JavaScript ES2017 specification (ES8) has been around for a while. Many of the features introduced in this spec are very useful. Most of them are also well supported and safe to use. In this tutorial, you will learn a bit about what are the ES2017 features, how they work, and how to use them.
4 JavaScript ES2018 Features You Should Know
The ES2018 specification introduced four new features. These features are asynchronous iteration, rest/spread properties, Promise.prototype.finally() and regular expression improvements. This tutorial will help you learn how these ES2018 features work and how to use them.