Hello World Program in JavaScript
To write and run a JavaScript program all we need to have a text file and a internet browser. First of all write the following code in a text file and save it with .html file, for now we will embed the JavaScript code within html coding, to display the output in a browser.
Example 1:
<html>
<head>
<title>My Firt JavaScript File </title>
<script type="text/javascript" >
document.write("Hello World");
</script>
</head>
<body>
</body>
</html>
Output:
Hello World
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.