for - of

Added in ES 2015.
This should be used when the order is important

let array = ['A', 'B', 'C'];  

for (item of array) {
    console.log(item);
}




© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext