@jZero/

SmartLawngreenFreesoftware

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
dataArray = ['bill', 'Bob', 'Lucy', 'Mark'];
dataAge =[24,65,28,32];

// iterating with for of

for (let n of dataArray) {
	console.log(n);
}




dObj = {
  names: dataArray,
  age: dataAge
};

for (let name in dObj.dataArray) {
	console.log(name);
};

Native Browser JavaScript