JavaScript ES6 Q&A: Complex Problems Simple Solutions

Photo by David Rangel on Unsplash

Javascript is one of the hottest programming languages of all time. For beginners or even mid-level programmers, this is a simple guide to build logic with most common but powerful functions of JavaScript ES6.

let foo = 1; // foo = true; // foo = 'a'; // foo = "Hello";

How to determine the data type of a variable?