In programming, variables are named containers for the purpose of storing data. This value may or may not change depending on the type of variable and the conditions set forth by the program's instructions (code).
console.log()
is a function that prints a message to the JavaScript console. The message printed is dependent on what is passed through as an argument inside of the parentheses.
In this lab, you are to declare variables of different primitive types. Then output each variable's value in the console.
Upon completion of this lab, you will be able to:
console.log()
to output the variable's value to the consoleThe following courses and labs can ensure your success: