GoConqr has a new look! Let us know what you think.

Module 3 of 18 · Media

Decisions

Kostas Diakogiannis

Decisions

How to make Decisions in JS.

The first way is by creating if statements. By if statements you can check if a specific condition is true or false. Then you can specify and define a block of code that will be executed only when the condition is true, and another block of code for when the condition is false. Once you understand this you can create your own decisions based on the outcome of a condition you are checking.

But how do i create expressions that evaluate either to true or to false? See next chapter.

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?