App Logo

No.1 PSC Learning App

1M+ Downloads
What is the correct JavaScript syntax to write "Hello World"?

ASystem.out.println("Hello World")

Bprintf("Hello World")

Cdocument.write("Hello World")

Drespopnse.write("Hello World")

Answer:

C. document.write("Hello World")

Read Explanation:

the correct JavaScript syntax to write "Hello World" is - document.write("Hello World")


Related Questions:

A programme in a personal computer that manages data flow from the computer's operating system and attached devices such as hard disk, key board, mouse and printer?
ASCII refers to :
What language has slogan 'write once,run anywhere'?
Which of the following is used as a language for designing web pages ?
A detailed written description of the programming cycle and the program, along with the test results and a printout of the program is called :