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.

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心