跳到主要内容
学院
初级 代码街区

JavaScript

Web 的语言,从基础到异步编程。

JavaScript is the language of the web. It runs in every browser, on servers with Node.js, and inside countless websites and games. This track takes you from your very first line to real interactive pages: values and logic, arrays and loops, functions and closures, objects and JSON, the DOM and events, and async code with promises, async/await and fetch.

Every lesson is short, hands-on and checked with quizzes, so you learn by doing.

课时
29
时长
3 小时
级别
初级

本课程的内容目前为英文。

  • 铜牌 可挑战
  • 银牌 可挑战
  • 金牌 未解锁

准备好证明自己了吗?

三场考试正等着你:铜牌、银牌和金牌。

前往考试

学完后你将能够

  • Write modern JavaScript with const, arrow functions and template literals
  • Transform data with arrays, objects, map, filter and reduce
  • Make web pages interactive with the DOM and events
  • Load live data from an API with fetch, promises and async/await
  • Handle errors and debug your code with confidence

学习旅程

  1. 1
    第 1 单元

    Getting started

    What JavaScript is, where it runs, and your first lines in the console.

    0 / 3
  2. 2
    第 2 单元

    Values and variables

    Store data with let and const, know your types, and work with numbers and text.

    0 / 4
  3. 3
    第 3 单元

    Logic and decisions

    Compare values safely and branch with if, the ternary operator and switch.

    0 / 3
  4. 4
    第 4 单元

    Arrays and loops

    Store lists, repeat work, and transform data with map, filter and reduce.

    0 / 4
  5. 5
    第 5 单元

    Functions

    Reusable logic: parameters, arrow functions, callbacks, closures and modules.

    0 / 4
  6. 6
    第 6 单元

    Objects and JSON

    Model real data with objects and classes, and exchange it as JSON.

    0 / 4
  7. 7
    第 7 单元

    JavaScript in the browser

    Read and change the page with the DOM, and respond to the user with events.

    0 / 3
  8. 8
    第 8 单元

    Async JavaScript

    The event loop, promises, async and await, and fetching live data.

    0 / 4

快速导航