how to print a line in javascript

JavaScript
console.log("Your line would be here")//Prints a line on the console 
alert("Your message here")//Raises an alert
Source

Also in JavaScript: