Q. Which of the following reads the textual contents of a URL and returns as a string?
β
Correct Answer: (D)
readUrl(url);
Explanation: Rhino defines a handful of important global functions that are not part of core JavaScript in which readUrl(url) reads the textual contents of a URL and return as a string.