showing results for - "for item loop"
Laura
25 Nov 2016
1const object = {a: 1, b: 2, c: 3};
2
3for (const property in object) {
4  console.log(`${property}: ${object[property]}`);
5}
6
7// expected output:
8// "a: 1"
9// "b: 2"
10// "c: 3"
11