Skip to content
Sign upLog in
← Back to Community
using replit database with node.js
Profile icon
hacker
has Hacker Plan
Kingq23

I need help with using replit database

Answered by OldWizard209 [earned 5 cycles]
View Answer
Voters
Profile icon
Kingq23
Comments
hotnewtop
Profile icon
OldWizard209

You can use the database with this code by setting a key to a value:

const Database = require("@replit/database") const db = new Database() db.set("key", "value").then(() => {});

For more uses, see the replit docs or click the databse button on your repl's sidebar:

image

And then you can see all the functionalities:

image

Profile icon
Flyingcrabs

easy

Profile icon
Flyingcrabs