Multiple choice javascript

How do you find the client's browser name?

  1. browser.name

  2. navigator.appName

  3. client.navName

Reveal answer Fill a bubble to check yourself
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.