is a method for iterating over “enumerable” properties of an object. Iteration happens in an arbitrary order. Therefore, it should not be used if things need to happen in their defined sequence.
1) for..in and Objects
for..in is the most straightforward way to loop over Object keys and values, since Objects do not have access to “forEach”.
2) for..in and Arrays - possible but not advised
The “key” for values in an Array are the numerical indexes, so you could loop over all values. But not advised because it’s not guaranteed that it happens in sequence.
3) for..in and Strings - possible but not advised
Each character in a string has an index, so you could loop over these enumerable properties.
Please Like 👍, Share ➡️ and Comment 💬
❤️Follow @hackerbuildr for more content
#️⃣Use #hackerbuildr for a repost
In this tutorial, I show how you can export a MySQL database using Command Line.