Vidyalelo
HTML · Q51

Basic HTML

Programming · HTML · question 51

Q51

___________ is used to test whether geolocation is supported in old browsers.

A.
Modernizr
B.
Modernizr.geolocation
C.
Navigator.userAgent
Answer
D.
Modernizr.js

Answer: Option C

Solution

Answer: Option C
Solution:
Since Modernizr is a JavaScript object with methods, we can use Modernizr.geolocation to test whether geolocation is supported.