Lexical scope is a fundamental concept in programming that determines the accessibility of variables and functions within a program. In simple terms, the lexical scope… Read More
Tag Archives: javascript-basics
The area where a variable (or function) exists and is accessible is known as Scope. We can layer the scope in a system which means… Read More
Brendan Eich first developed JavaScript, a computer language, in about ten days in May 1995. The language, formerly known as Mocha, later modified to LiveScript,… Read More
JavaScript is interpreted language. Here we will try to clear the age-long confusion related to JavaScript. One of the biggest questions that arise while learning… Read More
The Left Shift Assignment Operator is represented by “<<=”. This operator moves the specified number of bits to the left and assigns that result to… Read More
The Right Shift Assignment Operator is represented by “>>=”. This operator shifts the first operand to the right and assigns the result to the variable.… Read More
This article aims to clarify when you should use double or single quotes while coding in JavaScript. If you have worked with JavaScript, you may… Read More
JavaScript is a modern scripting language that is popular worldwide among developers. It is a lightweight, interpreted compiled language that can be used on both… Read More
JavaScript one-liners are helpful for writing clear, effective, and expressive code, thus programmers should be comfortable with them. One-liners are frequently used for simple and… Read More
As a programmer, it’s crucial to comprehend loops since they give you a means to repeatedly run a block of code. Loops are a fundamental… Read More
The break Statement comes out of the loop when the condition is true. It breaks out of the loop or switch. In a switch, code… Read More
The continue statement in Javascript is used to break the iteration of the loop and follows with the next iteration. The break in the iteration… Read More
A do… while loop in JavaScript is a control statement in which the code is allowed to execute continuously based on a given boolean condition.… Read More
The Javascript Function Constructor is used to create a new function object using the Function() constructor with the new operator. The Javascript Function Constructor creates… Read More
JavaScript var is a keyword used to declare variables in JavaScript that are function scoped. Before the introduction of ES6 all the keywords in JavaScript… Read More