Question: How to print hello world using javascript
Answer:
Mainly three concepts are available to print 'hello world' on the screen with javascript.
First: 'document.write()'
document.write('Hello World!');
Second: 'console.log()'
console.log('Hello World!');
Third: 'alert()'
alert("Hello World!");
We try to provide you the best content, if there is any mistake in this article or there is any mistake in code, then let us know.
Comments
Post a Comment