title: test if a variable is a primitive rather than an object?
body: <p>Is it possible to test a variable to see if it is a primitive?</p>
  
  <p>I have seen lots of questions about testing an variable to see if it is an object, but not testing for a primitive.</p>
  
  <p>This question is academic, I don't actually need to perform this test from my own code.  I'm just trying to get a deeper understanding of JavaScript.</p>