Answer the question
In order to leave comments, you need to log in
How to rewrite the arrow f-th to the usual one?
for (let i=0;i < itemTest.length;i++){
itemTest[i].addEventListener('click', (e) => {choosen(e)} )
}
Answer the question
In order to leave comments, you need to log in
There is no need for an anonymous function here:
itemTest[i].addEventListener('click', choosen)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question