This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by DeAnte
over 10 years

how would i write this?, help fast please

How would i write this? help fast please

if variable ticketCost is greater than 100 and reports “Way too expensive!”, but otherwise reports “Okay let’s go!”

Answer 52675ef9f10c60fffa004045

0 votes

Permalink

Practically the way you just described it. It’s just a normal if/else statement

if(ticketCost > 100)
{
console.log("Way too expensive!");
}
else
{
console.log("Okay let's go!");
}
points
Submitted by Neil
over 10 years