Line Breaks in JavaScript Logging

Report a typo

Consider the following piece of JavaScript code:

console.log("Hello world. 
I am learning; 
JavaScript programming. 
Having a great time!")

How would you modify it to display the text across multiple lines without causing an error in a proper way?

Select one option from the list

Create a free account to access the full topic