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:

Which of the following is true about PHP?
Which of the following is a programming Language ?
Language which is closely related to robotics:
In programming, what is the purpose of a loop?
What does the command prompt uses?