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
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
console.log('b' + 'a' + + 'n' + 'a' + 'n' + 'a')
Geekabyte is happy to announce the first paid workshop on Starter Byte: Zero to Hero in React at Of10 Powai on 21st April 2018. The…
Document Object Model (DOM) is a basic representation of your UI. Everything you see on the UI is…
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"}