Coursera 笔记

Module 01 · Introduction to Server-Side JavaScript服务器端 JavaScript 入门

Module Summary模块总结

Coursera ↗

Congratulations! You have completed this module. At this point in the course, you know: 
恭喜!您已完成本模块。在课程的这个阶段,您已经知道:

  • Backend technologies include various types of servers and supporting infrastructures such as programming languages, frameworks, and other hardware.  
    后端技术包括各种类型的服务器和支撑基础设施,如编程语言、框架以及其他硬件。
  • Node.js is the server-side component of JavaScript. 
    Node.js 是 JavaScript 的服务端组件。
  • The require statement can be called from anywhere in the app code, is bound dynamically, and is synchronous. The import statement must be called at the beginning of a file, is bound statically, and is not asynchronous.
    require 语句可以在应用程序代码的任何地方调用,是动态绑定的,并且是同步的。import 语句必须在文件开头调用,是静态绑定的,并且不是异步的。
  • Client-side JavaScript is used to process front-end user interface elements, and server-side JavaScript is used to enable access to different kinds of servers and web applications. 
    客户端 JavaScript 用于处理前端用户界面元素,服务器端 JavaScript 用于启用访问不同类型的服务器和 Web 应用程序。
  • With server-side JavaScript, Node.js applications process and route web service requests from the client. 
    使用服务器端 JavaScript,Node.js 应用程序处理和路由来自客户端的 Web 服务请求。
  • To make a function or a value available to Node.js applications that import your module, add a property to the implicit exports object. 
    为了使函数或值可供导入您的模块的 Node.js 应用程序使用,请向隐式导出对象添加一个属性。
  • Core modules include bare minimum functionality, local modules are those that you create for your application, and the Node.js community creates third-party modules.
    核心模块包括最基本的功能,本地模块是您为您的应用程序创建的,Node.js 社区创建第三方模块。
  • A local install means only the application within the directory of the installed can access the package, whereas a global install means that any application on the machine can access the package. 
    本地安装意味着只有安装在目录中的应用程序可以访问该软件包,而全局安装意味着机器上的任何应用程序都可以访问该软件包。