JavaScript ES6+ : Symbols

Symbol is the 7th primitive type in JavaScript after number, string, object, boolean, null and undefined. Symbols are unique identifiers that have descriptors. Symbols can avoid naming collisions. We cannot loop over symbols. Peace ✌️

JavaScript ES6+ : Promises

Promises are object that will produce some data in future or will return an error why the promised data was not produced. then() callback function is used to intimate when the resolved data is returned….

JavaScript ES6+ : For Of Loops

For Of loops are new in Javascript and can be used to loop on any kind of iterable data except object. Iterable data are Arrays, String, Map, Set, Generator etc. For Of loop does not…

JavaScript ES6+ : Destructuring

Destructuring allows us to extract data from Objects, Arrays, Maps & Sets. It allows you to write DRY code. Object Destructuring You will have to use “{}” (curly braces) for Object Destructuring. const facilityDetails =…

JavaScript ES6+ : Strings & Template Strings

ES6 has introduced 4 new methods to manipulate strings. .startsWith(); .endsWith(); .includes(); .repeat(); They are pretty straightforward. Some examples to show what they are useful for. const panNo = “AQAPP1865C”; // .startsWith(); checks if the…

JavaScript ES6+ : Arrow Functions

Arrow functions are new in ES6. They are concise, have implicit returns and does not rebound the value of “this” when arrow function is used inside another function. const moduleNames = [“One”, “Club”, “Finance”]; //…