ðïž Introduction
ES6 (ECMAScript 2015) is the 6th version of JavaScript, introduced in 2015.
ðïž Brief History of JavaScript
- Created by Brendan Eichm at Netscape in 1995
ðïž Comment and Document
Commenting is essential in JavaScript for better readability, debugging, and documentation. JavaScript supports single-line, multi-line, and JSDoc comments.
ðïž What is REPL?
REPL (Read-Eval-Print Loop) is an interactive programming environment where you can run JavaScript (or other languages) line by line and see the results immediately.
ðïž Data Types in JavaScript
Explanation:
ðïž Data Type Converstion
1. Implicit Type Conversion (Type Coercion)
ðïž Types of Variable
| Variable Type | Scope | Reassignment | Redeclaration |
ðïž Types of Scope
1. Global Scope
ðïž Operators in JavaScript
Arithmetic operator:
ðïž Functions
Functions are reusable blocks of code that perform a specific task.
ðïž Higher-Order Functions
Higher-order functions are functions that take other functions as arguments or return functions as their result.
ðïž Scoping Hierarchy in JavaScript
1. Global Scope
ðïž Closures in JavaScript
A closure is a function that remembers the variables from its outer scope, even after the outer function has finished executing.
ðïž Classes in JavaScript
Classes are a template for creating objects. They encapsulate data with code to work on that data.
ðïž Objects in JavaScript
Objects in JavaScript: A Complete Overview
ðïž Synchronous & Asynchronous in JavaScript
JavaScript's single-threaded nature means it can handle one operation at a time. To manage tasks like network requests or file operations without freezing the main thread, JavaScript employs asynchronous programming.