1.

___________ is used to test whether geolocation is supported in old browsers.(a) Modernizr(b) Modernizr.geolocation(c) Navigator.userAgent(d) Modernizr.jsThis question was posed to me in an interview for internship.My doubt is from Compatibility Libraries topic in section HTML Fundamentals of HTML

Answer»

Right option is (c) Navigator.userAgent

Best explanation: Since Modernizr is a JavaScript object with methods, we can USE Modernizr.geolocation to TEST WHETHER geolocation is supported. Geolocation API DETECTS support for the Geolocation API for users to provide their location to web applications.



Discussion

No Comment Found

Related InterviewSolutions