User-Defined Functions in JavaScript

提供方
Coursera Project Network
在此指导 项目中,您将:

Describe the purpose of a function in JavaScript.

Create and call a JavaScript function.

Demonstrate reusability in regard to JavaScript functions.

Clock2 hours
Intermediate中级
Cloud无需下载
Video分屏视频
Comment Dots英语(English)
Laptop仅限桌面

By the end of this project you will have created and used a function in JavaScript. You will use the Notepad++ editor to write both internal and external JavaScript functions and the code to call them from within an HTML file. Through hands-on practice you will compare methods and functions and look at built-in functions versus user-defined functions. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

您要培养的技能

JavaScript FunctionsFunction CallsMethods versus FunctionsReusabilityBuilt-in Functions

分步进行学习

在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:

  1. Define the term function, compare functions and methods, and explain how a function is used in a program.

  2. Examine examples of JavaScript built-in functions and user-defined functions.

  3. Define an internal JavaScript function and call that function from the HTML file where it lives.

  4. Define a function in an external file and link to it from an HTML file.

  5. Demonstrate the process of using the same JavaScript function more than once in a script.

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心