Skip to content
← Back to Community
JS database tutorial?
Profile icon
[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.

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
AndrewEckelmann
Profile icon
Retro981
Profile icon
RyanTang11
Comments
hotnewtop
Profile icon
Coder100

Anyways, you can use mine (now the official one!)
Tutorial https://www.npmjs.com/package/@replit/database

Profile icon
[deleted]

@Coder100 Your tutorial is great! Though it just needs some explaining of WHAT the code does.

Profile icon
Coder100
Profile icon
Coder100

most of the code is a bit complicated for a beginner, but I can answer any questions @CarlosRosiles

Profile icon
[deleted]

@Coder100 Oh ok. Quick question: what is the await keyword do?

Profile icon
Coder100

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

Profile icon
Coder100

of course .then() also works. Learn more here @CarlosRosiles

Profile icon
[deleted]
Profile icon
Coder100

Well, you will want to learn node.js

Profile icon
[deleted]

@Coder100 Ok. And I did NOT expect such a quick answer lol

Profile icon
Coder100