title: What's the difference between feature detection, feature inference, and using the UA string
body: <p>I was asked this question in a job interview recently, specifically around Javascript.  I was wondering the proper response.</p>
  
  <p>What exactly is the difference between <code>feature detection</code>, <code>feature inference</code>, and using the  <code>User agent</code> string?</p>