If a scope declares a variable that has the same name as one in a surrounding scope, access to the outer variable is blocked in …
Category: Javascript
JavaScript often abbreviated as JS, is a programming language that conforms to the ECMAScript specification.JavaScript is high-level, often just-in-time compiled, and multi-paradigm. It has curly-bracket syntax, dynamic typing, prototype-based object-orientation, and first-class functions.
Alongside HTML and CSS, JavaScript is one of the core technologies of the World Wide Web.JavaScript enables interactive web pages and is an essential part of web applications. The vast majority of websites use it for client-side page behavior, and all major web browsers have a dedicated JavaScript engine to execute it.
JavaScript engines were originally used only in web browsers, but they are now embedded in some servers, usually via Node.js. They are also embedded in a variety of applications created with frameworks such as Electron and Cordova.
A closure is a combination of functions bundeled(enclosed) together with reference to it’s enclosing environment. In some other words we can say that a closure …
What is promise in javascript ? Promise is an object that in future either produce an resolved value or an unresolved value. A promise can …
The different ways to create object in javascript are as follows : 1)By using Object constructor var d = new Object(); 2)Using Object.create() var a …
The window object represents open window on the browser Get the window’s height and width: (NOT including toolbars/scrollbars): var w = window.innerWidth; var h = …
NaN means not a number value Generally we get this value when the operand is not numeric.For example : “India”/4. The result of the operation …
A browser has to do a number of things pretty much all at once, and just one of those is execute JavaScript. But one of …