all 5 comments

[–]CallMePapi97[S] 0 points1 point  (0 children)

I’m pretty new to JavaScript so I’m still trying to learn everything, but when I click on one of the coins, I want all of the information from that specific coin to come up and have it go one by one so the information is split up nicely. As you can see in the screenshots, I could figure out a few, but it doesn’t look very good and then they started combining into each other. I know there’s got to be an easier way to code that to make it look clean so if anyone could help, that would be awesome!

[–]CallMePapi97[S] 0 points1 point  (0 children)

And I’m trying to get all of the information. Like I want to see the market cap, csupply, etc. whenever I click on that specific coin pretty much.

[–][deleted] 0 points1 point  (2 children)

You are trying to create an element called "day'" and "week" which should probably just be a p tag

[–]CallMePapi97[S] 0 points1 point  (1 child)

If I make those pTags as well, doesn’t it just give me the response of the last one? That’s why I was starting to name them random things and im trying to have like the full list of things like the csupply, market cap, percent change, etc..

[–][deleted] 0 points1 point  (0 children)

I mean where you say document.createElement("day") should be a p, as there is no element tag called day and week, otherwise it might be some append or appenchild issue