-
___________ is used to test whether geolocation is supported in old browsers.
-
- Navigator.userAgent
- Modernizr.js
- Modernizr.geolocation
- Modernizr
- None of these
Correct Option: A
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.