0

Why am I unable to add an image in my code on Sololearn code playground?

Nothing's wrong with my code but the image just doesn't show up in the output. I don't know whats wrong. https://code.sololearn.com/Wb8dsYzyvSrR/?ref=app

18th Jul 2021, 2:43 PM
Harindre Chaudhary
Harindre Chaudhary - avatar
6 Answers
18th Jul 2021, 3:42 PM
JaScript
JaScript - avatar
+ 6
Your picture is hosted on your local device, it wont work unless upload it. You can use dropbox or google images as Elisaveta 💖 mentioned or, i find this the easiest <https://imgbb.com>
18th Jul 2021, 3:05 PM
Brain & Bones
Brain & Bones - avatar
+ 3
Check the URL of the image... It's showing the image it's probably from your pc or phone so it won't show to any other person. As advice you can upload it to Dropbox or Google images for example so it will be available no matter the times you check it.
18th Jul 2021, 2:57 PM
Elisaveta
Elisaveta - avatar
+ 2
Imgur
19th Jul 2021, 1:07 AM
UPrejean
UPrejean - avatar
0
I think it is due to fact that your code is on sololearn server and image in your device. There is something wrong in getting url properly. Because the way u are using it is good if code and image both on your device. Couldn't it be a possible reason?
20th Jul 2021, 12:35 PM
Divya Mohan
Divya Mohan - avatar