mercredi 4 mai 2016

JavaScript Conditional expression without the use of Relational operator

Here is the prompt to start.

This is one way to code a conditional expression that tests whether a Boolean variable named isValid is true:

isValid == true

Code another way that doesnt require the use of a relational operator.

How do you evaluate a boolean to be true without a relational operator? Has me a bit stuck




Aucun commentaire:

Enregistrer un commentaire