Open In App
Related Articles

ISRO | ISRO CS 2015 | Question 80

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report
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

Last Updated : 06 Apr, 2018
Like Article
Save Article
Share your thoughts in the comments
Similar Reads