JavaScript Decision Programming with Nested If

Coursera Project Network
在此指導 項目中,您將:

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
Comment Dots英語(English)

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.


logicJavaScriptNested IfWeb Development



  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.






還有其他問題嗎?請訪問 學生幫助中心