Levi9 Interview Question

How to detect clients browser name in javascript?