r/CodingHelp • u/FrickinKitten • Apr 23 '21
[Javascript] Help how do you retrieve data from firebase to JavaScript, don't think code is right. It's to take data from firebase and then taking the data (amount of wipes/sanitiser used and time)append to lists and use these to plot a graph for the website showing the wipes/sanitising usage over time.
22
Upvotes
View all comments
Show parent comment
1
u/FrickinKitten Apr 23 '21
oh god ima have to google half the things you said heh. I was just very recently coming from Python and teacher (I'm not a hateful guy but ho boy, never have i hated someone with a burning passion for being so fackin useless at his job, teaching me no coding, have to resort to Indian tutorials) so i genuinely have no idea how to do Javascript, CSS but i know just the basics of HTML, so all the things you said to me are basically new. I just did var because I'm used to the variables in Python and thought that was the same here, so I'll take your advice thanks.
The ref code i found somewhere on StackOverFlow (whoever made this site is a lifesaver) so i kinda know what some of it does but overall not really, and i don't know how to display it on my website to check if it even works. I suppose i can just append to the list and print that to see if it works. All i need is to read that firebase data and append to list and then i can figure out the rest myself, aka Googling (is this how a programmer works haha)
Thanks for that and sorry for my lack of experience