JS database tutorial?
[deleted]
I am learning some JavaScript and I want to know how to save the data. I have heard of a database but don't know how to use one. W3schools is not very helpful for me. So does anybody know any other good JavaScript database tutorials? And does anybody have any coding ideas so I can practice some more JavaScript.
Anyways, you can use mine (now the official one!)
Tutorial https://www.npmjs.com/package/@replit/database
@Coder100 Your tutorial is great! Though it just needs some explaining of WHAT the code does.
thanks! @CarlosRosiles
most of the code is a bit complicated for a beginner, but I can answer any questions @CarlosRosiles
@Coder100 Oh ok. Quick question: what is the
await
keyword do?javascript is async by default, meaning when you make multiple http requests, it does them all at the same time, we are using await to force it to "wait" for each method to be done. @CarlosRosiles
of course
.then()
also works. Learn more here @CarlosRosiles@Coder100 ok.