Web Technology
Accenture Technical 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

Quick AnswerThe correct answer is document.write("World of JavaScript") because it directly addresses the core logic of Web Technology.

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

PrimerPrep has 1400+ practice questions, 2026 simulations and coding hands-on — all free.

Watch Walkthroughs!