+ 1
JavaScript - From letters to digits
Output is "012345". How is it letters are "transformed" in digits? let result = ""; for(let i in "abcdef"){ result += i; } document.write(result);
4 Answers
+ 3
its not converting, but it take the index from the array
+ 2
no, it take the properties.
you can use for of to take the value
+ 1
Shouldn't it take values?
+ 1
for...of vs for...in Loops in JavaScript
https://alligator.io/js/for-of-for-in-loops/