- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex.js
More file actions
Latest commit
20 lines (18 loc) · 389 Bytes
/
Copy pathex.js
File metadata and controls
20 lines (18 loc) · 389 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// const veggies = ["onion", "garlic", "potato"];
// veggies.forEach(
// function (veggie, index) {
// console.log(`${index}. ${veggie}`);
// }
// );
constresult=[];
constdrone={
speed: 100,
color: "yellow",
};
constdroneKeys=Object.keys(drone);
droneKeys.forEach(
function(key){
result.push(key,drone[key]);
}
);
console.log(result);