Day 24: pass Or Fail of 100DaysCodingChallenge

Hello all, 

I have started the 100 days of coding challenge to improve my programming skills..

Today is the Day24 of 100DaysCodingChallenge for 

pass Or Fail input Marks taken by the user.

Code : 

let marksObtained = prompt("Enter marksObtained : "); 
// let passingMarks = prompt("Enter passingMarks : ");
let passingMarks = 40;
if (marksObtained >= passingMarks ) {
  console.log("Yeah.! You are Passed this Examination.");
} else {
  console.log("Oops.! You are not Passed this Examination.");
}

Output :     



Happy Coding:)

Comments

Popular posts from this blog

Day 55: Pattern using loops of 100DaysCodingChallenge

Day 7: Square or Power Integer Numbers of 100DaysCodingChallenge

Day 45: Pattern using loops of 100DaysCodingChallenge