var allowed_ids = {
332438809: "Bereznyak24",
about: {
address: "Gorky 84",
average_sum: 50
},
489485425: "Bereznyak25",
about: {
address: "Sohnstr 41",
average_sum: 100
}
};
var checked = childs[0].innerHTML.replace(/\D+/g, "");
console.log(allowed_ids.checked.about.address);
`
In checked variable I store either 332438809 or 489485425. Saying allowed_ids[checked] results in Bereznyak24 or Bereznyak 25. But how can I access address and average_sum values?
allowed_ids.checked.about.address this piece of code is a wrong one and does not result in a proper responce. Thanks!
aboutwhich overwrite the first one