Levi9 interview question

How to detect clients browser name in javascript?