freeCodeCamp/guide/chinese/certifications/apis-and-microservices/basic-node-and-express/meet-the-node-console/index.md

18 lines
767 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Meet the Node console
localeTitle: 认识节点控制台
---
## 认识节点控制台
确保您克隆了正确的存储库/故障项目并在myapp.js中编写代码。
节点控制台提供了许多方法。您可以使用Node.js文档找到这些方法的列表 [在这里](https://nodejs.org/dist/latest-v10.x/docs/api/console.html) 。常见的用途是记录错误,例如:
```javascript
console.log("An error happened");
```
### 如果你使用Glitch
* Glitch已将“日志”按钮更改为“状态”按钮仍然位于应用名称下方的左上方
* 不要直接提交“编辑”页面。点击“显示”按钮在顶部并提交应用程序显示页面的网址网址格式类似于https://appname.glitch.me/