title: Javascript OOP variables from class
body: <p>Ey everyone, I am trying to make a javascript class and get its data off the class. Here's a snippet of the code:</p>
  
  <pre><code>    var App = {
  
      data: {
          string = "String"
      }
  
      login: function() {
          return alert(data.string);  
      }
  }
  
  var me = App.login();
  </code></pre>
  
  <p>Well, what I am trying to accomplish is getting the string value off data and alert it. What am I doing wrong?</p>