for of vs for in loop

To loop over each item of a list:

Arrays use: for...of
Objects use: for...in

Comments

Popular posts from this blog

Code Wars: Data Reverse (6 kyu)

Code Wars: longest_palindrome (6 kyu)

Code Wars: Find the odd int