Last active
July 14, 2018 05:13
-
-
Save dragonly/209cd4788166bd91b7aa383f039de975 to your computer and use it in GitHub Desktop.
tricky chrome debugger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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