Call us Morpheus, because we've got your back. Here’s what you need to know:
Once you’ve got the syntax down, we suggest getting acquainted with your new best friend,
the console. The console is a display panel that often shows important messages about our code. We can reveal a lot about what our code is doing behind the scenes by logging things to the console. In the case of the 21 Day Coding Challenge, the console will show the expected output and any errors returned by our tests.
If we want a particular piece of data or item to be printed to the console we can use
console.log(). We can learn more about this built in action here. When we’re not sure why something isn’t working, it will be very useful to print values to the console, so we can see the work we’re doing.
console.log("Print this value")
The data types we’ll be using in the 21DCC include:
We can learn more about data types and how to use them here.