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,filterandreduce - Make web pages interactive with the DOM and events
- Load live data from an API with
fetch, promises andasync/await - Handle errors and debug your code with confidence
学习旅程
1 第 1 单元Getting started
What JavaScript is, where it runs, and your first lines in the console.
0 / 32 第 2 单元Values and variables
Store data with let and const, know your types, and work with numbers and text.
0 / 43 第 3 单元Logic and decisions
Compare values safely and branch with if, the ternary operator and switch.
0 / 34 第 4 单元Arrays and loops
Store lists, repeat work, and transform data with map, filter and reduce.
0 / 45 第 5 单元Functions
Reusable logic: parameters, arrow functions, callbacks, closures and modules.
0 / 46 第 6 单元Objects and JSON
Model real data with objects and classes, and exchange it as JSON.
0 / 47 第 7 单元JavaScript in the browser
Read and change the page with the DOM, and respond to the user with events.
0 / 38 第 8 单元Async JavaScript
The event loop, promises, async and await, and fetching live data.
0 / 4