Skip to content

Instantly share code, notes, and snippets.

@dominikschreiber
Created February 7, 2018 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dominikschreiber/2830995db3c563d0d0b9b2fbea8fceab to your computer and use it in GitHub Desktop.
Save dominikschreiber/2830995db3c563d0d0b9b2fbea8fceab to your computer and use it in GitHub Desktop.
var i = setInterval(function() {
var $p = document.createElement('p')
$p.textContent = new Date()
document.body.appendChild($p)
}, 2 * 1000)
eval('var $p = document.createElement("p"); $p.textContent = "Im evaled"; document.body.appendChild($p)')
setTimeout(function() {
var $p = document.createElement('p')
$p.textContent = 'dont be evil'
document.body.appendChild($p)
clearInterval(i)
}, 10 * 1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment