JavaScript Decision Programming with Nested If

Offered By
Coursera Project Network
In this Guided Project, you will:

Identify situations in problem-solving where Nested If logic is required.

Demonstrate the correct use of syntax when writing a Nested If statement in JavaScript.

Write JavaScript code that uses Nested If logic to solve a business problem.

Clock2 hours
IntermediateIntermediate
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

In this intermediate-level project you will examine the need to make complex decisions in programming that require Nested If statements. Using the Notepad++ editor and JavaScript embedded in HTML, you will write the JavaScript code to test a condition and then take an action based on the test result. The catch is that the action may be to test another condition and take an action based on that test result. As you develop your programming skills, the logic required will become more complex. The Nested If statement will be a great tool for you as you tackle those logic challenges. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Skills you will develop

logicJavaScriptNested IfWeb Development

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Write JavaScript code to solve a problem that tests a condition and then takes one action if the condition is true and another action if the condition is false.

  2. Investigate a business problem that requires a combination of conditions be tested in order to determine the appropriate actions.

  3. Examine the JavaScript Nested If code that tests a combination of conditions to solve a problem as documented in a flowchart.

  4. Use Notepad++ to write JavaScript code that includes a Nested If statement.

  5. Write JavaScript code that solves a complex logic problem by including a compound condition within a Nested If statement.

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.