Javascript
JavaScript Fundamentals -- Strings, Numbers, & Dates

Strings, Numbers, and Dates Exercise

PRO
Outline

For this exercise, do the following:

// 1. Print out a message with the following variable in a template string
const dogName = 'Duke';


// 2. Split the following string on the periods and output the resulting array.
const statement2 = 'This is a long string. Split it on the periods. The result is an array.'

// 3. Log the circumference of a circle using the Math object and the following information.
  // 2 * radius * PI
const radius = 2;


// 4. Print out the current time in milliseconds


// 5. Print out a date object referencing Jan 1, 2020

Click here to go to this exercise in StackBlitz.

 

I finished! On to the next chapter