i have this array obj:
var scenari =[
{pos:'i4y',azione:('persa','avanti','indietro'),'peso':(0.3,0.4,0.3)},
{pos:'g4r',azione:('persa','avanti','indietro'),'peso':(0.3,0.4,0.3)}
];
How to retrieve the array in key azione? i try this but is print only 'indietro' and not array
console.log (scenari[0]['azione']);//indietro
(and)instead of[and]. The keyazioneis not a JS array.()are invalid. Need to be[]