JavaScript While Loop

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

Explain the advantages of repetition programming.

Write JavaScript code that includes a working While Loop.

Conduct testing to ensure that a JavaScript While Loop solves a logic problem.

Clock2 hours
Intermediate中級
Cloud無需下載
Video分屏視頻
Comment Dots英語(English)
Laptop僅限桌面

In this intermediate-level project you will examine the concept of repetition programming – also called “looping." Using the Notepad++ editor and JavaScript embedded in HTML, you will write the JavaScript code to repeat a block of program code while a particular condition is true. As you work with the While Loop you’ll begin to realize why repetition programming is one of the most important features of computing. 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.

您要培養的技能

Do/While LoopJavaScript LooploopingWhile LoopRepetition Programming

分步進行學習

在與您的工作區一起在分屏中播放的視頻中,您的授課教師將指導您完成每個步驟:

  1. Examine the concept of repetition programming and describe its advantages.

  2. Experience the looping process by running a program that repeats a process.

  3. Use Notepad++ to write JavaScript code that contains a While Loop, and test the code in Chrome.

  4. Examine and test JavaScript code that includes an example of a Do/While loop.

  5. Examine a problem solution using an IF-Else statement and compare it to the Switch statement that solves the same problem.

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

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