Question: Use AJAX request to send a string(name) and a number(score) from HTML client files to be processed by nodejs server files and to be stored
Use AJAX request to send a string(name) and a number(score) from HTML client files to be processed by nodejs server files and to be stored in the DB table (table named score) in XAMPP.
On the write.html, gets input from user, stores them in a new row of the table score upon pressing the store DB. Once the server received the input request, the server has to return a confirmation
such as Alex:178 was stored in the DB
and you need to show it on the client page underneath the button ( in a p tag, div tag or something, no need to stack up the massages every time user sent a new request, just display the last message )
( note: you can use GET request to send data to be stored in DB )
it looks something like this

On read html, t fetches all the data from the table score and dumps them here as
Alex: 178
John: 134
Enter name and score name: : score: : store in DB
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
