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