0% Complete
0/0 Steps

Participants 0

      JavaScript Numbers

      JavaScript has only one type of numbers.

      Numbers can be written with, or without decimals:

      Example

      var x1 = 34.00;     // Written with decimals
      var x2 = 34;        // Written without decimals

      Extra large or extra small numbers can be written with scientific (exponential) notation:

      Example

      var y = 123e5;      // 12300000
      var z = 123e-5;     // 0.00123

      You will learn more about numbers later in this tutorial.

      Welcome to the Digital Strategy Hub

      We are in beta and please email support @ centerfordigitalstrategy.com with any issues or features that would make your experience better.


      We have a feedback call to hear what would be most useful to you:

      Thursday April at 1 ET / 10am PT