I am using Visual Studio Code version 1.69.1 (June 2022).
I am getting ts(1005) error when i try to mirror what my teacher did in our Javascript Loop class…
const cryptos = [‘BTC’, ‘ETH’, ‘USDT’, ‘BNB’, ‘ADA’];
for (let crypto of cryptos) {
console.log(crypto);
}
console.log(’--------’);
for (let index in cryptos) {
console.log(index, typeof index);
}
console.log(’--------’);
for (let i = 0, i < cryptos.length; i += 1) {
console.log(cryptos[i]);
}
Please can someone help?