Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Here is a 2-part problem:

part 1:
Using a set of Comparison and Logical operators, write an application that evaluates to true and displays the result within an alert box.

part 2:
Using a set of Comparison and Logical operators, write an application that evaluates to false and displays the result within an alert box. The application cannot use the same operators used in the previous application.

How do I do this?

I'm new to Javascript, but I'm trying to learn! Thanks!

What I have tried:

all i know how to do. I'm new but trying to figure it out.
Posted
Updated 20-Dec-18 15:19pm
Comments
Mohibur Rashid 20-Dec-18 21:04pm    
If you know how to do then you should have done something. Share us that code

1 solution

part1:

var x = 15;
alert(x > 10);

part2:

alert ('yellow' === 'green') && (4 >= 4);

Would this be a correct answer? Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900