Examveda
Examveda

Which of the following reads the textual contents of a URL and returns as a string?

A. spawn(f);

B. load(filename,…);

C. readFile(file);

D. readUrl(url);

Answer: Option D

Solution(By Examveda Team)

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.

Join The Discussion

Related Questions on Server Side and Client Side Scripting