0

How do i loop thru a array(with images, str and int) and present it on a HTML site?

I tried to do it, but the pictures(img) is not coming up. Any input? https://code.sololearn.com/WYyhCrC067Fk/?ref=app

3rd Oct 2020, 8:28 AM
W. Khalid
3 Respuestas
0
Theres no way to fecth an image in your code. You are just writing the name of the file Images need img tag with src attribute.
3rd Oct 2020, 9:05 AM
arturop200
arturop200 - avatar
0
Thanks for the answer, what would be the proper way to do it then?
3rd Oct 2020, 9:06 AM
W. Khalid
0
I dont know if proper way to do it but this is what can be added in your code: var geek = ['<img width="150px " src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRHPWY5z5GzyhBQa0T_Dtsjp_ftB_rLIXdleg&usqp=CAU">',"Clark", 29, "Likes video games"]
3rd Oct 2020, 9:17 AM
arturop200
arturop200 - avatar