For of vs For in JavaScript Loops
In JavaScript there are two kinds of for loops: for of and for in. The difference can be seen when looping through arrays. Let’s take this array for example: var greetings = [“Hi”,”Hey”,”Hello”] It’s just a normal array with three strings (words) in it called …