Every programmer’s journey begins with “Hello, World!”. In JavaScript, we use console.log() to print output to the console.
Run this example to see how it works and then try the exercise.
Click "Run" to see the example in action...Your task: Print "Hello, World!" to the console
Click "Run" to execute your code...Which method is used to print output to the console in JavaScript?
SUMMARY
In this section, you learned how to print output to the console. Next, you’ll learn how to declare variables using let and const.