JavaScript Scope JavaScript scope refers to the area of a program where variables and functions are accessible - it is crucial for error-free code.
Create a mock API server with node and json-server Mock an external API server, either temporarily or simply to test your code.
JavaScript Modules As our JavaScript code grows in size, there comes a times when one file is not enough - here we're having a look at how to structure code across multiple files using modules.
JavaScript Naming Conventions JavaScript naming conventions are a set of rules to follow while naming variables, functions, classes, and other identifiers in your code. They are designed to help write clean, organized, and easily maintainable code by following these rules agreed beforehand either across a business or a team.
Javascript Hoisting Hoisting is a mechanism where variable and function declarations are moved to the top of their scope before code execution - regardless of where they are declared in the code, they are processed first before the code is executed.
Running JS in the Browser Console and Node All mainstream web browsers will include a console that allows developers to debug and troubleshoot issues on web pages by providing a way to interact with the web page's JavaScript code and examine the page's Document Object Model (DOM).
JavaScript Classes JavaScript is an object-oriented programming language that uses classes to define objects and their behaviors. A class is a template for creating objects, which defines a set of properties and methods that the objects will have.
JavaScript Functions A JavaScript function is a group of instructions that together perform a task; it is defined once and can be used (i.e. called) as many times as needed.
JavaScript Symbols JavaScript Symbols was first introduced in ECMAScript 6, and they are used to define properties of an object that cannot be accessed or modified by other parts of the code.
JavaScript Arrays JavaScript arrays are containers that store multiple values in a single variable, in a 0-indexed ordered list and can hold any type of data, including numbers, strings, objects, and even other arrays, and are dynamic.