Created
February 13, 2022 00:40
-
-
Save Costava/a5a80bdb8d41b38e9e3aefec4703b78d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var count = -3; | |
document.addEventListener("keyup", function(e) { | |
if (e.code === 'Space') { | |
count += 1; | |
console.log(count); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment