print line javascript code example
Example 1: how to print a line in javascript
console.log("Your line would be here")//Prints a line on the console
alert("Your message here")//Raises an alert
Example 2: javascript print
console.log("Who's Joe?")
Example 3: print in js
console.log()
Example 4: printing in a single line in javascript
var s = "";
for(var i = 1; i < 11; i += 1) {
s += i + " ";
}
console.log(s);