title: Can I assign a string to a javascript object variable?
body: <p>This seems an easy question for experienced developer, but I did not find the answer in stack overflow.</p>
  
  <p>If I declare a variable like this, <code>var name = {};</code> </p>
  
  <ol>
  <li>I think now my name is a object?</li>
  </ol>
  
  <p>Can I assign a string to this variable name, like <code>name = "Foo";</code></p>
  
  <ol start="2">
  <li>Will this work?</li>
  <li>If this work, any cons for this?</li>
  </ol>
  
  <p>(I know I can declare name as <code>var name = "";</code> But I remember in javascript, anything is object (including string, so string is also an object)).</p>