1.

Which is not the property of location object?(a) origin(b) port(c) host(d) geolocationI have been asked this question in a job interview.This is a very interesting question from Essential JavaScript and jQuery topic in section HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right ANSWER is (d) geolocation

To ELABORATE: The properties of location object are HOST, origin, port, pathname, HOSTNAME, href, hash, protocol, search. The port number of URL is set by port. The entire URL is set by href, path name of URL is set by pathname property, protocol of URL is set by protocol property.



Discussion

No Comment Found

Related InterviewSolutions