Day 22: Boolean Number String of 100DaysCodingChallenge
Hello all,
I have started the 100 days of coding challenge to improve my programming skills..
Today is the Day22 of 100DaysCodingChallenge for
Boolean Number String Data input taken by the user.
Code :
let a = prompt("Enter a : "); if (a == 0 || a == 1) { console.log(a, "is a Boolean."); } else if (a > 1) { console.log(a, "is a Number."); } else { console.log(a, "is a String."); }
Output :
Happy Coding:)
Comments
Post a Comment