I have three links that express three different images. I want to push these links to an array and I can show off my images on the screen. How can I do that
This is my JS code, is that correct ?? Thanks a lot.
let cardsource = [
"<a href = 'https://bom.to/Qd87vw'> Card 1</a>",
"<a href = 'https://bom.to/P21flg'>Card 2 </a>",
"<a href = 'https://bom.to/dFwwNw'>Card 3 </a>",
];
for (var index = 0; index < cardsource.lengh; index++) {
console.log(cardsource[index]);
}