JavaScript Numbers: Properties and Methods

5.0
estrellas
7 calificaciones
ofrecido por
Coursera Project Network
En este proyecto guiado, tú:

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
BeginnerPrincipiante
CloudNo se necesita descarga
VideoVideo de pantalla dividida
Comment DotsInglés (English)
LaptopSolo escritorio

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.

Habilidades que desarrollarás

isNaN()Number()Javascript MethodstoString()JavaScript

Aprende paso a paso

En un video que se reproduce en una pantalla dividida con tu área de trabajo, tu instructor te guiará en cada paso:

  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.

Cómo funcionan los proyectos guiados

Tu espacio de trabajo es un escritorio virtual directamente en tu navegador, no requiere descarga.

En un video de pantalla dividida, tu instructor te guía paso a paso

Preguntas Frecuentes

Preguntas Frecuentes

¿Tienes más preguntas? Visita el Centro de Ayuda al Alumno.