The value of the JS for loop is {}?

use js to loop an array. I look at other people"s code online and use {I} to fetch variables. Is this method miscellaneous? No relevant instructions can be found on the Internet

wiki [1] is the array I want to loop.
mainly does not understand why he can use ${I} to get data, and this {$wiki [1] [I]}, is that way?

            for(let i=0; i < wiki[1].length; iPP){
                $(".output").append("<div class=" item item${i}" style="display:none;"><h3> ${wiki[1][i]} </h3> 

${wiki[2][i]}

</div>");
Apr.11,2021
Learn about the template string for

ES6.


delete and write again
es6 template string


template string-JavaScript | MDN

notice that the character of the package string is `, not '.

Menu