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.

指导项目工作原理

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

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

常见问题

常见问题

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