Explain the for-in loop?

Explain the for-in loop?

For-In loop in JavaScript allows your to loop over keys of an object, in case of arrays it iterates over it’s keys i.e. indices of the array.