Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Numbers in JavaScript

By Guil Hernandez

<div class="secondary box"> <strong>Note:</strong> To get the most out of instruction steps, be sure to write all of your code and avoid copying/pasting from the examples. </div>

Numbers in JavaScript are as straightforward as they sound; you don’t need any special syntax for numbers, you write them straight into JavaScript.

In JavaScript, numbers can be whole numbers (called integers...