+ 3

Hello guys, my linked image is not showing and robot.src is showing an error

Trying to practice Introduction to Javascript which is in the HTML course but I'm facing some challenges. the image link which I copied from web is showing as broken- does sololearn editor not accept images? is there a way I can upload images from my computer into the editor? Also why did the robot.src in the onclick attribute not work for me? see my code link below: https://www.sololearn.com/en/compiler-playground/W9JE5K5h5QCe

28th Aug 2024, 3:44 PM
Quintessa🎯🇳🇬
Quintessa🎯🇳🇬 - avatar
9 ответов
+ 1
Well you can get a free stock image and use the link or convert your image to and svg or self host your image on your google drive in the share folder copy the link and add to your project …
29th Aug 2024, 10:26 PM
Chinedu Gabriel
Chinedu Gabriel - avatar
+ 2
""" is there a way I can upload images from my computer into the editor? """ this /similar question was asked a lot of times. feel free to use the search form. you will find the answer: GitHub/GitLab, cloud drive (but the picture must be public)
28th Aug 2024, 4:21 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
+ 1
you didn't link the image, just a page.... here is a link to that bird: https://images.unsplash.com/photo-1480044965905-02098d419e96?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D next time click on the image and: open image in new tab/window; or just copy image location.... or if you can't click, then tap it, but the process is the same
28th Aug 2024, 4:18 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
+ 1
Mihaly Nyilas thanks for the answers👍
28th Aug 2024, 4:24 PM
Quintessa🎯🇳🇬
Quintessa🎯🇳🇬 - avatar
+ 1
your welcome! happy learning and happy coding :-)
28th Aug 2024, 6:31 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
+ 1
Maybe you should put the picture in the same folder as the saved code.
6th Sep 2024, 5:31 PM
Abdulbasit Daud
Abdulbasit Daud - avatar
0
Share image link here
28th Aug 2024, 4:02 PM
A͢J
A͢J - avatar
28th Aug 2024, 4:05 PM
Quintessa🎯🇳🇬
Quintessa🎯🇳🇬 - avatar
0
about the onclick: ReferenceError: robot is not defined at HTMLButtonElement.onclick but you can read the error. errors/exceptions are really helpful
28th Aug 2024, 4:19 PM
Mihaly Nyilas
Mihaly Nyilas - avatar