To complete the other answers, to find out how to set up the server can cost you several days, I will sign you a 5-minute installation guide for a simple node.js server that will hide your answer.
Install node.js.
Create a file called server.js with the contents below.
var express = require("express"), app = express(); app.get("first_answer",function(req,res){ res.send("b"); }); app.listen(8080);
Open a terminal, enter
npm install express cd path_to_the_folder_you_placed_the_file node server.js
This will install the express.js module and start the server.
Now, on your site using jQuery, just request a response from the server. An example of using jQuery:
var user_answer = ... $.get("http://localhost:8080/first_answer",function(answer){ if (answer == user_answer) alert("you got it right!"); });
For more complex examples and better server utilization, just read the express.js documentation. (
source share