This is a basic registration form. script.js performs input checking. express.js sends and receives data from mongodb.
What I need to do is send input values (such as username.value) after input checking from script.js to express.js. How do I do it?
things to keep in mind this is an assignment and I cannot use jQuery, React etc. just HTML, CSS, JS, Express and mongodb