Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The XSS Game by Google. Parent comment
To clarify, you need to update the URL, then hit the Go button to the right to update the page, then finally click the newly updated "Next >>" link.
- - -
re: Level 4
Can someone explain how the possible strings break the parseInt()? Source code:
function startTimer(seconds) { seconds = parseInt(seconds) || 3; setTimeout(function() { window.confirm("Time is up!"); window.history.back(); }, seconds * 1000); }
There are no comments on this comment yet.
To clarify, you need to update the URL, then hit the Go button to the right to update the page, then finally click the newly updated "Next >>" link.
- - -
re: Level 4
Can someone explain how the possible strings break the parseInt()? Source code:
I tried running parseInt() in the console and just got NaNs for `'+alert()+'` and `3'); alert('`.