Challenger App

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 command is used to delete a table from database?
An object is an instance of :
How do you define a function in JavaScript ?
Choose the correct HTML element for the largest heading.
Identify the HTML section that contains the content displayed in the browser window.