How do you find the client's browser name?
-
browser.name
-
navigator.appName
-
client.navName
B
Correct answer
Explanation
Browser information is accessed through the navigator object, not a 'browser' object. The appName property specifically returns the browser name. Option B correctly uses navigator.appName. Option A uses a non-existent 'browser' object. Option C invents a 'client.navName' property.