Is Zero is true otherwise positive or negetive number is? let’s get start!

  1. Falsey value:
    const price = 0;
    if (price) {
    console.log(‘condition is true’);
    }
    else {
    console.log(‘condition is false’);
    }
    output:- condition is false;



Photo by Árpád Czapp on Unsplash

Operator


Top 10 Things You Should Learn About JavaScript



Abdur Rahim

MERN STUCK DEVELOPER

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store