skip to Main Content

Javascript – Getting correct selector using Puppeteer

here's the HTML code. <div class="list-row"> <div class="list-item"> <div class="imgframe"> <div class="img-wrap"> <div class="img-item"> <a href=""> <img src="img1"> </a> <div class="in-lable"> <a href="link1"> <span class="title">title1</span> </a> </div> </div> <div class="img-item"> <a href=""> <img src="img2"> </a> <div class="in-lable"> <a href="link2"> <span…

VIEW QUESTION

Javascript – TypeError : a is not iterable

const a= [1,2,3,4,5,6,7,8,9,10]; function evenNum (a){ for (let element of a){ if (element%2===0){ console.log(element); } } }; console.log(oddNum()); function oddNum (a){ for (let element of a){ if (element%2!=0){ console.log(element); } } }; console.log(evenNum([1,2,3,4,5,6,7,8,9,10])) Learning javascript as a complete beginner to…

VIEW QUESTION
Back To Top
Search