RosettaCodeData/Task/Loops-Foreach/JavaScript/loops-foreach-6.js

4 lines
85 B
JavaScript
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
h = {"one":1, "two":2, "three":3}
for (x in h) print(x);
for each (y in h) print(y);