diff --git a/index.html b/index.html index 4ad279d2..d9564f26 100644 --- a/index.html +++ b/index.html @@ -17,7 +17,8 @@
- + +

diff --git a/js/index.js b/js/index.js index 17452e23..7937d706 100644 --- a/js/index.js +++ b/js/index.js @@ -1,2 +1,8 @@ -// using this file is optional -// you can also load the code snippets in using your browser's console +// messing around with adding event listeners and displaying variables after +input.addEventListener('keydown', function(e) { + var info = ''; + info = info + e.key; + if (e.key === 'enter') { + console.log(info); + } +});