Document Object Model (DOM) is a basic representation of your UI. Everything you see on the UI is…
Your variable hold multiple data types ? Tired of checking null / undefined or zero ? Use !! ( two times ‘!’ (not) operator ) . That will type cast your variable into boolean
Do you have one variable to be checked against multiple values ?
For e.g. Jack will be happy when he will get to eat Mango, Apple, Grapes or Guava
Consider the following examples
var height= “123.45”
console. log(parseFloat(height))) // 123.45
Let’s consider this example:
var object = { "name": "Arwa", "city": "Mumbai"}
Let us consider this example
function scope() {
var scope = "I am outer scope"
if(true){ var scope = "I am inner…