Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

hello world in javascript

console.log("Hello World");
//This is a backend process you can see when you go to the console page in inspect panel and executing the code.

alert("Hello World"); //Or window.alert();
//This will show a dialog containing Hello World.

document.write("Hello World");
//This is the common way of displaying text content in a Web page using JS.
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #world #javascript
ADD COMMENT
Topic
Name
9+8 =