Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 363 Bytes

File metadata and controls

13 lines (7 loc) · 363 Bytes

Ternary Operator

The sayHello() function is using an if/else conditional statement.

To save some code, replace the if/else statement with a ternary operator instead.

Whatever you do, make sure the tests still pass! 👮

To run the tests:

        npm test ternaries.test.js

Hint: make sure you're in the correct folder before running these commands.