Skip to content

Instantly share code, notes, and snippets.

@dragonly
Last active July 14, 2018 05:13
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 dragonly/209cd4788166bd91b7aa383f039de975 to your computer and use it in GitHub Desktop.
Save dragonly/209cd4788166bd91b7aa383f039de975 to your computer and use it in GitHub Desktop.
tricky chrome debugger
<html>
<body>
Just open the chrome debugger and see wierd things
<script>
let x = {
x: {
x: 1
}
}
console.log(x.x.x)
console.log(x.x)
console.log(x)
x.x.x = 233
</script>
<script>
let $script = document.querySelector('script')
document.body.innerHTML = `<pre>${$script.innerHTML}</pre>`
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment