What database is most common/best used with javascript?
josh
2016-12-16 20:27:04 UTC
I just took a php course where we used mysql, just wondering what is used with javascript, thanks.
Three answers:
Chris
2016-12-16 21:20:40 UTC
You can replace PHP with node.js; that way you can write your backend in JavaScript, too. If you do that you can use pretty much any database you want, as long as you add a suitable node package to your project.
The JavaScript you've used so far runs on the client (i.e. the user's browser) as opposed to PHP, which runs on the server. Giving client-side JavasScript access to a database server would pose a huge security risk.
?
2016-12-16 22:48:03 UTC
JavaScript is a codebase. it does not require a database for anything.
PHP does not require SQL either, although it CAN be used with it.
JavaScript can be used with any webcodes, to add more functions to it, including PHP, HTML, ASP, and more.
Undisclosed
2016-12-16 21:15:44 UTC
JS is used to connect to all kinds of databases. The most common are MySQL, MSSQL, Oracle, and SQLite.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.