How can I interfere with the database using JavaScript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I interfere with the database using JavaScript?

I want to create tables, update tables or even create a whole new database. It's possible through php, but since it's not supported in chrome and I'm having problems with installing servers like mamp and xampp, I really need help to do database manipulations through JavaScript. My simple question is "can we add data to databases using JavaScript". Help would be appreciable

24th Sep 2019, 1:00 PM
Shrehan Raj Singh
Shrehan Raj Singh - avatar
3 Answers
24th Sep 2019, 1:46 PM
ODLNT
ODLNT - avatar
+ 3
Yeah, I'm using mysql, but I'll do check on your advice. Thanks, Talha Altinel
24th Sep 2019, 1:22 PM
Shrehan Raj Singh
Shrehan Raj Singh - avatar
+ 1
Yes you just need to use Node.js as backend and mongodb as a database let's say and mongoose as a query library utility. But i guess you are using mysql as a database at the moment? If so then i have no idea.
24th Sep 2019, 1:09 PM
Talha Altınel (The Last Sith Lord)
Talha Altınel (The Last Sith Lord) - avatar