difference between for in and for of loops in js code example Example: for of vs for in for (variable in enumerable) { // do stuff }