I am thinking about creating an online javascript survey as a quiz for my students. I would like this survey to be similar to those people take when trying to qualify for a market research study (ie it fails the user if they get one answer that doesn’t meet the criteria for the study, and it continues the survey if they qualify to that point). If I implement this, is there a way that my students could determine the appropriate answer to select to ensure that they get all of the right answers and never hit the reject page?
Share
All JavaScript is provided to the browser as plain text and can easily be viewed by the user (In this case your students). That means that any instructions you give the webpage can be seen by the user; which in essence means you give them the right answers in the code (If they are smart enough to find it). The only way to truly hide the answers from them would be to process their answers out of the browser.