ES6 and Typescript Tutorial - 20 - for of Loop

preview_player
Показать описание

📱 Follow Codevolution

ES6 | ES2015 | Typescript | ES6 Tutorial | ES2015 Tutorial | Typescript Tutorial | ES6 Tutorial for Beginners | ES2015 Tutorial for Beginners | Typescript tutorial for Beginners
Рекомендации по теме
Комментарии
Автор

if someone looking for both index, element.
let colors = ['Red', 'Blue', 'Green'];

for (let [index, element] of colors.entries()) {
console.log("Index:", index, "Element:", element);
}

akshaynitin
Автор

Can you also please let us know how to get index in "color of colors"? Sometimes that is needed too.

AngrejKumar
Автор

string template not working for me sir

abdullahkhan-gkeu