Hellow guys am a newbie in javascript .I have seen some code like this ..
function f() {
var model = this.model.attributes;
var data = {
path: Config.baseUrl,
lang: url.segment(1),
id: model['id'],
date: model['date'],
views: model['views'],
author: model['author'],
authorName: model['authorName'],
question: model['question'],
answer: model['answer'],
rate: model['rate'],
_ : _,
S: S,
moment: moment
};
I just need to know model['id']
model['views']
etc etc ..i just need to know the use of id,date,views author here .In php its like array and key but is it the same concept in jaavascript too ..Any help would be greatly appreciated thanks .:)