Question: create and print a javascript variable for each type: Create a: Boolean variable called isWeekend set it to 'false' Number variable called theNumber that is

create and print a javascript variable for each type:

Create a:

Boolean variable called isWeekend set it to 'false'

Number variable called theNumber that is bigger than 37

String variable called theMessage that is longer than 11 characters

Create a new Date variable called theDate - use new Date() to create a Date variable.

Create a List called bootCampers with at least 3 bootcamper's names in it.

The typeof operator returns the type of a variable.

Change your program to also print out the type of each variable.

For example the code below prints true:

var number = 12; console.log(typeof number) 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!