What is if else in java Script ?

Hello friends today i am sharing with you if else in Java Script

In java script ‘if else’ means real life agar or magar like in hindi today i am sharing with you example in this below here.

console.log("If Else")

let name = 1;

if (name == 0) {
    console.log("This is False");
} else {
    console.log("This is True");

let a = 5;
let f = 5;
if (a == f) {
   document.write("This is equal ha");
else if (a != f) {
   document.write("This is not equla ha");
else {
   document.write("veryvery equal");

Leave a Comment