title: from java to javascript: the object model
body: <p>I'm trying to port an application I wrote in java to javascript (actually using coffeescript).</p>
  
  <p>Now, I'm feeling lost.. what do you suggest to do to create class properties? Should I use getter/setters? I don't like to do this:</p>
  
  <pre><code>myObj.prop = "hello"
  </code></pre>
  
  <p>because I could use non existing properties, and it would be easy to mispell something..</p>
  
  <p>How can I get javascript to be a bit more like java, with private, public final properties etc..? Any suggestion?</p>