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 Functions
  • Function Calls
  • Methods versus Functions
  • Reusability
  • Built-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.

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心