Files
freeCodeCamp/curriculum/challenges/chinese/05-apis-and-microservices/basic-node-and-express/meet-the-node-console.chinese.md
Beau Carnes 6b1992ee7c fix: Add Api challenges - Chinese translation (#35164)
* fix: Add Api challenges - Chinese translation

* fix: md formatting

* fix: md formatting
2019-05-06 06:31:26 -05:00

1.4 KiB
Raw Blame History

id, title, localeTitle, challengeType
id title localeTitle challengeType
587d7fb0367417b2b2512bed Meet the Node console 认识节点控制台 2

Description

0在开发过程中,能够检查代码中发生的情况非常重要。 Node只是一个JavaScript环境。与客户端JavaScript一样您可以使用控制台显示有用的调试信息。在本地计算机上您将在终端中看到控制台输出。在Glitch上您可以打开屏幕下方的日志。您可以使用“日志”按钮切换日志面板左上角在应用名称下0要开始使用只需在控制台中打印经典的“Hello World”即可。我们建议在应对这些挑战时保持日志面板处于打开状态。阅读日志您可以了解可能发生的错误的性质。

Instructions

0修改myApp.js文件以将“Hello World”记录到控制台。

Tests

tests:
  - text: <code>"Hello World"</code>应该在控制台中
    testString: 'getUserInput => $.get(getUserInput(''url'') + ''/_api/hello-console'').then(data => { assert.isTrue(data.passed, ''"Hello World" is not in the server console''); }, xhr => { throw new Error(xhr.responseText); })'

Challenge Seed

Solution

// solution required