title: Why is my value of a javascript object undefined?
body: <p>I keep getting undefined when I attempt to output the objects value via chrome console.  Code:</p>
  
  <pre><code>ws.on('message', function(message) {
       var JSONobj = {"cmd":"updatesb","name":"TestName"};
       console.log('JSON Name Value: %s', message.name); //&lt;--does not work
       console.log('JSON Name Value: %s', JSONobj.name); //&lt;----WORKS!!!!
  });
  </code></pre>
  
  <p>The message argument in ws.on passes {"cmd":"updatesb","name":"TestName"} via websocket communication. The first console output is undefined.  The second output is TestName. Why is message.name  undefined when it should have a value of TestName and how do I get the value from message.name?</p>