Basic Javascript (108/111) | Use the Conditional Ternary Operator | freeCodeCamp

Published: 16 December 2020
on channel: Stral Tech
807
8

Basic Javascript (108/111) | Use the Conditional Ternary Operator | freeCodeCamp

Full playlist 👉    • Basic JavaScript (1/111) | Comment Your Ja...  

"The conditional operator, also called the ternary operator, can be used as a one line if-else expression.

The syntax is:
condition ? expression-if-true : expression-if-false;

Use the conditional operator in the checkEqual function to check if two numbers are equal or not. The function should return either "Equal" or "Not Equal".

https://www.freecodecamp.org/learn/ja...


On this page of the site you can watch the video online Basic Javascript (108/111) | Use the Conditional Ternary Operator | freeCodeCamp with a duration of hours minute second in good quality, which was uploaded by the user Stral Tech 16 December 2020, share the link with friends and acquaintances, this video has already been watched 807 times on youtube and it was liked by 8 viewers. Enjoy your viewing!