title: How do I enumerate the properties of a JavaScript object?
body: <p>How do I enumerate the properties of a JavaScript object?</p>
  
  <p>I actually want to list all the defined variables and their values, but I've learned that defining a variable actually creates a property of the window object.</p>