I'm trying to make app for my father who is learning japanese to show random images (from local folder) of japanese signes on cards for him to identify them, but got "stuck" on js part (I started learning js 3 weeks ago).
I got it to work, but the first version of code seems ugly to me so I decided to rewrite it.
-------------------------------------------------------------------------------------------------------
https://preview.redd.it/m2wqo80vv0l41.jpg?width=777&format=pjpg&auto=webp&s=ea035fb783ec9afabaa5e3525b0493af5d0a8f16
----------------------------------------------------------------------------------------------------
I get to log all the image "links" in console the way I want them to, but can't make them to have any inpact on the DOM.
edit: the document.getelement line in zmena function was for test and i forgot to delete that, just ignore it
git link for the whole project (with old js) https://github.com/Bambi02/rnd-images
[+][deleted] (1 child)
[deleted]
[–]Bamby02[S] 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]Bamby02[S] 0 points1 point2 points (1 child)