What is Emmet?If you go by their site the definition is “Emmet is a plug in for many popular text editors which greatly improves HTML & CSS workflow:” The general way to write Emmet abbreviation is: tagName[series of expressions] Where tagName: is the HTML tag you...Jan 5, 2023·3 min read
Maps in ES6Common things between Maps and Sets Both share common properties and methods Both are iterable which means you can loop over them. WeakMaps and WeakSets don't prevent object from being garbage collected. Maps Maps are unique because they are collec...Aug 31, 2022·5 min read
Sets in ES6A set is a collection of distinct items. For example, {2, 4, 5, 6} is a set because each number is unique and appears only once. However, {1, 1, 2, 4} is not a set because it contains duplicate entries (the 1 is in there more than once!). const nums ...Aug 30, 2022·6 min read
Build-ins - Symbols and Protocols in ES6Primitive data types Symbols are new addition in ES6 to primitive data types. Previously numbers, strings, boolean, null, undefined were primitive data types. Symbol Symbol is just a unique identifier. Its most often used to uniquely identify propert...Aug 26, 2022·4 min read
Classes in ES6Well in other languages, we use classes to create objects and provide inheritance. In JavaScript we use function to create objects. And being able to inherit data and functionality in JavaScript happens through prototypal inheritance. So JavaScript s...Aug 24, 2022·5 min read
Defaults and destructuring arrays and objectsTake a look at this code: function greet(name, greeting) { name = (typeof name !== 'undefined') ? name : 'Student'; greeting = (typeof greeting !== 'undefined') ? greeting : 'Welcome'; return `${greeting} ${name}!`; } greet(); // Welcome St...Aug 22, 2022·5 min read
Update to function in ES6- Part 1Functions are one of the primary data structures in JavaScript; Arrow functions ES6 introduces a new kind of function called the arrow function. Arrow functions are very similar to regular functions in behavior, but are quite different syntactically....Aug 21, 2022·6 min read