Coursera 笔记

Module 03 · JavaScript Programming for Web ApplicationsWeb 应用 JavaScript 编程

Module Summary模块总结

Coursera ↗

In this module, you learned that:
在本模块中,您学习了以下内容:

  • JavaScript is a scripting language that enables developers to add dynamic content to web pages.
    JavaScript 是一种脚本语言,它使开发者能够向网页添加动态内容。
  • JavaScript variables are declared using the 'let' or 'const' keywords and take their type from the value assigned.
    JavaScript 变量使用 'let' 或 'const' 关键字声明,并从分配的值中获取其类型。
  • Program execution is controlled by statements like If…Then…Else, Switch, For loops, and While loops.
    程序执行由如 If…Then…Else、Switch、For 循环和 While 循环等语句控制。
  • JavaScript uses blocks of code, called functions, that can be called from anywhere in the script.
    JavaScript 使用称为函数的代码块,这些函数可以在脚本中的任何位置被调用。
  • New methods and properties can be added to an object by modifying the prototype for that object.
    通过修改该对象的原型,可以向对象添加新的方法和属性。
  • Prototypes allow you to define properties and methods for all instances of a specific object.
    原型允许您为特定对象的全部实例定义属性和方法。
  • Client-side scripts are programs that accompany HTML documents and are used by developers to incorporate more interactive elements.
    客户端脚本是与 HTML 文档伴随的程序,开发者使用它们来融入更多交互元素。
  • The script tag can incorporate a script within an HTML document or call a script from an external file.
    脚本标签可以在 HTML 文档中嵌入脚本或从外部文件调用脚本。
  • The Document Object Model (DOM) is the programming interface between HTML or XHTML and JavaScript.
    文档对象模型(DOM)是 HTML 或 XHTML 与 JavaScript 之间的编程接口。
  • Developers can access HTML DOM elements from JavaScript scripts using the correct DOM notation.
    开发者可以使用正确的 DOM 标记从 JavaScript 脚本中访问 HTML DOM 元素。
  • APIs are often used to access HTML DOM elements in web pages.
    APIs 通常用于访问网页中的 HTML DOM 元素。