array if x (for each) do something js code example
Example 1: forloop in js
for(i = 0; i < x; ++i){
//Loop, x can be replaced with any integer;
}
Example 2: javascript for in loop
const p = {
"p1": "value1",
"p2": "value2",
"p3": "value3"
};
for (let [key, value] of Object.entries(p)) {
console.log(`${key}: ${value}`);
}