But where do I find this value. Its not anywhere in the prompt or code
for (let i = 0; i < count; i = i + 1) {
rows.push(i)
}
That previous for...loop
is building logic for that rows
array increment count
. Then you are building the current logic by using loop const row of rows
. Now here the row
have the value of the for...loop
logic.
I saw your answer in another post. Why didn’t you all just say remove the quotation marks from row to make it a value of row…
Because you have asked justification of the row
s value.
the value of rows
is determined here, then the value of row
comes from that for (const row of rows)
, the value of row
is one of the elements inside rows
. Visualize the code with Online JavaScript Compiler, Visual Debugger, and AI Tutor - Learn JavaScript programming by visualizing code, you will see it in action
the quotes make it a string, and you have been told multiple times to not write the string "row"