Question:
What I’m trying to do here is call the username from the database from the cookie, I tried to just call it though a regular function, but that doesn’t work since I have to wait on the data. then after send the data to the webpage. but my issue is just getting the data itself. I don’t really have much experince with promises, so I’m trying to figure out what’s happening here. thanks for the help.Answer:
If you have better answer, please add a comment about this, thank you!