Working with variables

Learn how to harness console.log to output our code so we can see what's going on. Learn more about using and copying variables.

Printing

To print something out, we use something called console.log(). We write that phrase with either a value or a variable name inside the parentheses. We see that item being printed out when we run our code. This is a very valuable tool as it lets us see what our code is doing.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy