Multiple choice general knowledge

How can you find a client's browser name in javascript

  1. client.navName

  2. client.appName

  3. navigator.appName

  4. clientitself.navName

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In JavaScript, the navigator object (part of the Window interface) contains information about the browser. The appName property specifically returns the official name of the browser. Options A and B use a non-existent 'client' object, while option D invents 'clientitself', which is not valid JavaScript syntax.