This is not a fair comparison, although you are almost there.
var store = new dojo.data.ItemFileReadStore({
url: "countries.json"
});
Alternative without a colon operator:
var props={};
props.url="countries.json"
var store = new dojo.data.ItemFileReadStore(props);
However, this is not the only use :in JavaScript, but it can also be used in the ternary operator ( alert(b==c?'equal':'not equal');) and in methods (for example, in operators case)
source
share