Created
January 3, 2018 22:34
-
-
Save StoneCypher/2cca660ef8d29af1c93e30f9f051a539 to your computer and use it in GitHub Desktop.
learn the debugger francisco
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
<!doctype html><html><head><script type="text/javascript"> | |
const Num1 = 500; | |
const Num2 = 0500; // this is the bug, but let's say that you don't know about octal | |
const finalNum = Num1 + Num2; | |
window.onload = () => | |
document.body.innerHTML = `Should print 1000: <tt>${finalNum}</tt>`; | |
</script><style type="text/css"> | |
tt { background-color: #eee; padding: 0.2em 0.4em; } | |
</style></head><body></body></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment