after finally starting to understand loops and how they work i havea curios question.
Lets say we have an object like the one listed below and we need to loop over this object(obviously these will be more complex in a real life situation).
let cars = { carName: 'Sorento', make: 'Kia', year: 2016}
let cars = { carName: 'Sorento', make: 'Kia', year: 2016}
If i can use for in or for of loop to loop through this object what would be the reason to use a regular for loop instead of the for of or for in?
I'm trying to to figure out just an idea on why one can be more important than the other