Workshop: Intro JavaScript
Use the command line to see if you have Node.js installed, using
node --version
. If you don’t have it, install it from the website.Create a file named
intro.js
and save it in a folder where you can run it with thenode
command, likenode intro.js
.Write some JavaScript that creates an ASCII art checker pattern in your terminal. Dark squares can be represented with a
#
or■
and white squares with a space or□
.Create variables with values of three different data types and log the type of each one to the console.
Create at least two number variables and log them to the console.
Create a string variable that contains quotation marks and log it.
Create a string variable that contains backslashes that show up when logged to the console, and log it.