Author: nafisa instarr

Popular Object labries in JS

JavaScript Libraries 1. D3.js Many modern websites are data driven. News sites, for example, must constantly refresh their content, making it impossible to reconfigure the setup every few seconds to support these changes. The Data Driven Documents, or D3.js, library is unique in that it puts the data first. The screenshot below shows just a few of the many data presentations you’ll find in D3.js’ visual index: Clicking an entry in the visual index takes […]

Inbuilt object in JS

JavaScript Built in Objects JavaScript has several built-in or core language objects. These built-in objects are available regardless of window content and operate independently of whatever page your browser has loaded. Array Object Multiple values are stored in a single variable using the Array object. In JavaScript, an array can hold different types of data types in a single slot, which implies that an array can have a string, a number or an object in […]

Iterator In JS

Introduction to Iterator:- Iterator is an object which allows us to access a collection of objects one at a time. The following built-in types are by default iterable − String Array Map Set An object is considered iterable, if the object implements a function whose key is [Symbol.iterator] and returns an iterator. A for…of loop can be used to iterate a collection. The following list of techniques doesn’t claim to be complete. It’ll show some […]

Closure Of Object In JS

Introduction to Closures in JavaScript A closure is a combination of a function bundled together with references to its surrounding state i.e. the lexical environment. In other words, a closure provides you access from an inner function to an outer function’s scope. Most of the Developers use closures in JavaScript consciously or unconsciously. It provides better control over the code when using them. Example: 1 2 3 4 5 6 7 8 9 10 11 […]