Posts

JavaScript tips and tricks

Query Selector When testing things in browser's dev tools, instead of typing the lengthy ` document.querySelectorAll ` you can use ` $$ `. $$("div") instead of document.querySelectorAll("div")  Determine the Weight of Your Web Page $$("*"), this will return total number elements present in the document. Get Unique Values of an Array Set is used to return the unique value of an array. var arr = [1, 2, 3, 3, 4, 5, 6, 6, 7, 7, 7, 7]; const newArr = new Set (arr); Related Articles Sorting an array in Javascript What is Redux? Why we need Redux? When it is required? React - Redux with Example What's new in ECMAScript 2019 Top features in ES 6 / Javascript 2015 HTML5 Web Storage

this keyword in Javascript

Advantages of typescript over javascript

Higher order functions in ES6/Javascript

React - Redux with Example

What is Redux? Why we need Redux? When it is required?

Default Parameter Values in ES6

Sorting an array in Javascript

Arrow function in ES6

HTML5 Web Storage