Ask coding questions

← Back to all posts
How to save data in node.js?
Axel1672

How to save data in node.js?

(50 charsssssssssssssss)

Voters
Axel1672
Comments
hotnewtop
Coder100

there's multiple ways to do it, the easiest is replit db
https://docs.replit.com/misc/database

ruiwenge2

you can use the replit database, like this:

hope this helps!

ruiwenge2

you can set anything you want, like color could be blue.

Axel1672

@ruiwenge2 It don't works for me

ruiwenge2

@Axel1672 what was that code you just put?

ruiwenge2

@Axel1672 what part doesn't work?

Axel1672

@ruiwenge2 It does not work in the part that I get the data in the database

ruiwenge2

@Axel1672 you need to set the key and the value first, like this: