So I am forced to complete an online course for my school that uses javascript functions to ensure each student stays on the page for at least a "required_variable" amount of time. Now using the javascript console I am able to just reset the required_variable amount of time to 0, thus allowing me to go to the next page without waiting their amount of time. So my question is whether the website could possibly know that I am resetting their variable. I looked at their code, and I seriously doubt that this particular website can, but I am more wondering because I design websites and there are certain javascript variables I wouldn't want to be overridden in some of my websites.
We can then check what values are stored in any variable at that point of time. Click F12 to open Developer Tools in Chrome. Or we can right-click and select Inspect (Ctrl+Shift+I).
keywords/reserved words cannot be used when declaring variables in js E.g;var,let,this,const,import etc....
Variables are named values and can store any type of JavaScript value. var x = 100; And here's what's happening in the example above: var is the keyword that tells JavaScript you're declaring a variable.
whether the website could possibly know that I am resetting their variable
Yes, there's Object.watch() from Mozilla and generic implementations for all browsers (e.g. Listening for variable changes in JavaScript or jQuery - a number of examples there).
In such a case the "watch function" could for example call back to the server to notify.
The exact time you clicked on the Next
/Answer
button could be recorded server side; the exact time your browser requested each page is logged by the server along with your IP so it'll always be possible to analyse your behaviour for the past year. Though it's unclear why or if they would do that.
Risk analysis: what would you gain from doing what you intend to do? What would you risk? If it seems dumb to you (I don't know, you gave little details... with reasons :) ), it may be super mega important to them to enforce this rule... and be mad at you.
tl;dr don't
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With