Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

if statement javascript

const randomObject = 5;
if(randomObject < 2) {
console.log("The Random Object has a value more than 2");
}
else {
console.log("The Random Object has a value less than 2");
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #statement #javascript
ADD COMMENT
Topic
Name
6+9 =