JavaScript Debugging Tips for Beginners

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

Distinguish between syntax and logic errors in JavaScript code.

Use techniques to assist in identifying JavaScript errors.

Access debugging aid from Chrome Developer Tools.

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

By the end of this project you will have used several techniques for debugging JavaScript code. Locating and fixing errors in JavaScript can be very challenging since JavaScript doesn’t necessarily display error messages. To help with the debugging process, you will practice with a few simple tools, like desk-checking and JavaScript alerts. And, you will be introduced to some of the debugging tools built into the Chrome browser. 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.

您要培養的技能

  • Debugging
  • Chrome DevTools
  • Breakpoint
  • javascript syntax
  • JavaScript Alert

分步進行學習

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

  1. Distinguish between syntax errors and logic errors in JavaScript code.

  2. Use text editor clues and your own eyes to identify errors in JavaScript code.

  3. Add an alert statement to your JavaScript code to determine the status of the code at a given point.

  4. Access the Console from the Chrome Developer Tools to identify lines of JavaScript code with errors.

  5. Demonstrate the process of setting breakpoints with Chrome Developer Tools, and using them to step through lines of JavaScript code.

指導項目工作原理

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

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

常見問題

常見問題

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