Vidyalelo
JavaScript · Q30

Document Object Model And Event Handling

Programming · JavaScript · question 30

Q30

Where is the information of the userAgent property located?

A.
appId
B.
appName
C.
platform
D.
appVersion
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
The string that the browser sends in its USER-AGENT HTTP header. This property typically contains all the information in appVersion and may contain additional details as well. Like appVersion, there is no standard format. Since this property contains the most information, browser-sniffing code typically uses it.