G
Guest
I'm a total noob, and I'm trying to understand this code:
var newsi = {
name:"newsi",
dom:false
};
newsi.Client=function(){
//stuff
}
I can't work out what datatype newsi is, I know you're gonna say
object but shouldn't it be one of number, string, boolean, null,
function, error, or something like that? It looks like a dictionary to
me but can a dictionary have a method called Client?
It's at the start of this file btw http://news.bbc.co.uk/js/newsi/latest/newsi.js?8
I've also seen: var foo = {};
That would be an empty.... what?
Apologies for my ignorance.
Thanks for your time in advance.
var newsi = {
name:"newsi",
dom:false
};
newsi.Client=function(){
//stuff
}
I can't work out what datatype newsi is, I know you're gonna say
object but shouldn't it be one of number, string, boolean, null,
function, error, or something like that? It looks like a dictionary to
me but can a dictionary have a method called Client?
It's at the start of this file btw http://news.bbc.co.uk/js/newsi/latest/newsi.js?8
I've also seen: var foo = {};
That would be an empty.... what?
Apologies for my ignorance.
Thanks for your time in advance.