Open In App

ISRO | ISRO CS 2015 | Question 80

Last Updated : 06 Apr, 2018
Like Article

The correct syntax to write “Hi there” in Javascript is
(A) jscript.write (“Hi There”);
(B) document.write (“Hi There”);
(C) print (“Hi There”);
(D) print.jscript (“Hi There”);

Answer: (B)

Explanation: The syntax to print a statement in javascript is: document.write (“text”).
Option (B) is correct.

Quiz of this Question
Please comment below if you find anything wrong in the above post

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads