0

The code below shows the name is deprecated, with the message:

'name' is deprecated.ts(6385) lib.dom.d.ts(17693, 5): 

The declaration was marked as deprecated here.

let name = 'mayk';
let names = ['joao','felipe','marcelo'];
for(let char of name){
}

But if I set name1 for example it works,why is that?

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437

0 Answers0