Which of the following is correct to write "Hello World" on the web page?

Options
- System.out.println(“Hello World”)
- print(“Hello World”)
- document.write(“Hello World”)
- response.write(“Hello World”)


CORRECT ANSWER : document.write(“Hello World”)

Write your comments

 
   
 
 

Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement