Javascript for MySQL

Hi silhouettezero1993 welcome to the forum

Please explain in what context you’re wanting to do this.

As solidcodes posted, the typical use case is to have JavaScript send various values to a server script.
The server script use the values to run a query.
The server sends the results back to the JavaScript.
The JavaScript uses the returned information to modify the page in the browser.

AFAIK there is no way that JavaScript can directly access a server database.

There are ways to have JavaScript use localStorage eg. SQLite,
But it can be complicated since the script needs “permission” to use the users computer