Web Technology
Accenture PrimermediumWeb TechnologyJavascript

Choose the correct JavaScript statement which helps you to write "World of JavaScript" in a web page.

Answer options

A
write("World of JavaScript")
B
System.out.println("World of JavaScript")
C
document.write("World of JavaScript")
D
println("World of JavaScript")

Correct answer: document.write("World of JavaScript")

Explanation

document.write() is the correct JavaScript method for writing content to the HTML document. System.out.println is Java syntax, and plain write() or println() are not valid browser JavaScript functions.

Related Accenture Web Technology questions

Practice more Accenture Web Technology questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.