JavaScript Numbers: Properties and Methods

4.9
16 個評分
提供方
Coursera Project Network
在此指導項目中,您將:

Declare and use a variable with a number data type in JavaScript.

Write code using JavaScript number properties.

Write code using JavaScript number methods.

Clock2 hours
Beginner初級
Cloud無需下載
Video分屏視頻
Comment Dots英語(English)
Laptop僅限桌面

In this beginning-level project you will work with the number data type, and with properties and methods that apply to numbers. You will use Notepad++ to write JavaScript code and the Chrome browser to view your results. For a JavaScript programmer, understanding how to deal with variables that contain numbers is a prerequisite for any kind of number processing – even something as simple as accepting a number from a prompt() method and using it in a calculation. 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.

您要培養的技能

  • isNaN()
  • Number()
  • Javascript Methods
  • toString()
  • JavaScript

分步進行學習

在與您的工作區一起在分屏中播放的視頻中,您的授課教師將指導您完成每個步驟:

  1. Write JavaScript code to declare a variable and then assign a number value to that variable.

  2. Use the Number() method to convert a value in a string variable to a number.

  3. Write JavaScript code to convert a number variable into a string variable using the toString() method.

  4. Use methods to check whether the value of a variable is an integer, or not a number at all.

  5. Experiment with number properties in JavaScript code.

指導項目工作原理

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

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

常見問題

常見問題

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