Web-Technologies
January 3, 2025
Compiler-Design
January 3, 2025
Web-Technologies
January 3, 2025
Compiler-Design
January 3, 2025

Web-Technologies

Question 50
Which of the following is the correct Javascript syntax to display “Hello World”?
A
println(“Hello World”)
B
system.out.print(“Hello world”)
C
document.write(“Hello world”)
D
response.write(“Hello World”)
Question 50 Explanation: 
→The write() method writes HTML expressions or JavaScript code to a document.
→Write HTML elements with text directly to the HTML document:
→document.write(” < h1 > Hello World!< /h1 > < p > Have a nice day! < /p > “);
Correct Answer: C
Question 50 Explanation: 
→The write() method writes HTML expressions or JavaScript code to a document.
→Write HTML elements with text directly to the HTML document:
→document.write(” < h1 > Hello World!< /h1 > < p > Have a nice day! < /p > “);

Leave a Reply

Your email address will not be published. Required fields are marked *