I know what is for... in loop (it iterates over key), but heard the first time about for... of (it iterates over value).
for... in
for... of
I am confused with
Here is a useful mnemonic for remembering the difference between for...in Loop and for...of Loop.
for...in
for...of
"index in, object of"
for...in Loop => iterates over the index in the array.
for...in Loop
for...of Loop => iterates over the object of objects.
for...of Loop