Tag Archives: ES6
Mastering check data types in Javascript
This article will help you to check data types in Javascript whether a variable or parameter is a string, number, array, object, function, null & undefined, boolean, regexp, error or date. Table of contents How do you check if a variable is a String in Javascript How do you check if a variable is a […]
When (and why) you should use ES6 arrow functions — and when you shouldn’t
Arrow functions are undoubtedly one of the more popular features of ES6. They introduced a new way of writing concise functions. Here is a function how is written in ES5 syntax: Now, here is the same function expressed as an arrow function: It’s much shorter! We are able to omit the curly braces and the […]