Created
April 28, 2016 08:12
-
-
Save codecakes/a3d091f9639c8d7b4e81d686580070ea to your computer and use it in GitHub Desktop.
Write a program that listens for a keyup event. In the handler, check which key was released. If it was “Y”, log the word “Yes”. If it was “N” log the word “No”. If it was any other key, log, “I don’t understand.”
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
<html> | |
<head> | |
</head> | |
<body> | |
<script async src="//jsfiddle.net/3M6Xt/31/embed/js,html,css,result/dark/"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment