Associative array/Iteration: Difference between revisions

no edit summary
No edit summary
Line 763:
io.writeln( key, value )
}
</lang>
 
=={{header|Dart}}==
<lang javascript>
main(){
var fruits = {
'apples': 'red',
'oranges': 'orange',
'bananas': 'yellow',
'pears': 'green',
'plums': 'purple'
};
 
fruits.forEach( (fruits, color) => print( '$fruits are $color' ) );
}
 
</lang>