var.var. It is the new and recommended way of declaring variables in JavaScript.Classes are a template for creating objects. They are built on prototypes but also have some syntax and semantics that are unique to classes.
READ MORE >
Comparison and Logical operators are the operators which will test whether the condition will be TRUE or FALSE.
READ MORE >
A JavaScript function is a block of code designed to perform a particular task. It will get executed when something invokes it (calls it).
READ MORE >
JavaScript has a runtime model based on an Event loop, which is responsible for executing the code, collecting and processing events, and executing queued sub-tasks.
READ MORE >
The Document Object Model is a programming interface for web documents. It represents the page so that programs can change the document structure, style, and content. DOM represents the document as nodes and objects; that way, programming languages can interact with the page.
READ MORE >
Hoisting refers to the process whereby the interpreter appears to move the declaration of functions, variables or classes to the top of their scope, prior to execution of the code.
READ MORE >
Closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment). In other words, a closure gives you access to an outer function’s scope from an inner function.
READ MORE >
Callback is a function that is passed inside another function, and then called in that function to perform a task.
Promises are used to handle asynchronous operations in JS.
The async keyword represent that the function is an asynchronous function and the await keyword is used inside the async function to wait for the asynchronous operation.
READ MORE >
JavaScript provides error-handling mechanism to catch runtime errors using try-catch-finally block, similar to other languages like Java or C#.
READ MORE >