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
Get step-by-step solutions from verified subject matter experts
