Here is a project I am trying to make with the breaking bad API. I am trying to make it so that when I click on the image of the character, the corresponding information about the character will show up. The problem is that I am stuck because I do not know how to do get the information of the characters from just clicking the image. My JavaScript code is a bit messy but any help is appreciated. Thanks
Well, there is not much we can do without seeing code.
I mean, presumably at that point your are going to navigate to some other screen or have a pop up window or modal or whatever. You’re either going to have to pass the info to those or you’re going to have to pass an id or something so they can look up the information themselves.
My JavaScript code is a bit messy but any help is appreciated.
Not to be snarky, but writing clean code should be a goal from the beginning, developing good habits early. Clean code is easier to read and maintain.
oopsie I forgot to add the link to the code, that was very clumsy of me
I am actually making writing clean code a goal of mine but I find it very hard to keep tracks of things sometimes.
I am aiming to make it so that I can display information when I click on the characters’ images
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.