Hello World script
First Java Script program using Notepad:
Open the Notepad editor
2a: Type the basic HTML document structure code
HTML script tag:
We embed Java Script code in the HTML document using script tag.
script tag is a paired tag can be placed anywhere in the document.
attribute of script tag:
2b: Write script tag within body section.
3b: In between script tag write document.write(“Hello World!”);
write(expression) : is a method available in document object, which is used to display output to the document
dot(.) : is a member access operator, which is used to access member data or member methods
File == Save As == ”HelloWorld.html” ==Save.
Open in browser (Google Chrome is best).
d. non of the above