JS-Control Flow

 var ham=10;

var cheese=10;

var report="Blank"


if (ham >= 10 && cheese>=10) {

  report="strong sales of both ham and cheese"

}else if (ham===0 && cheese===0) {

  report="Nothing Sold"

}else {

  report="We had some sales of items"

}

console.log(report); 


The above code is for contol statement for if logics

Comments

Popular posts from this blog

Top 5 Best Books For Python,Data Science & Machine Learning

How To Start A BLOG

Top 50 Most Innovative Companies in 2020

Why Should We learn C Programming?

Blogger Tutorial