learn-co-students / konami-code-lab-bootcamp-prep-000

Other
3 stars 1.72k forks source link

Thoughts on what to replace depreciated suggestion with #1251

Open BrennanFulmer opened 6 years ago

BrennanFulmer commented 6 years ago

Currently keydown properties like .which / .detail / .keyCode are depreciated. From what I've read the new standard is .key. I have already written the javascript to solve this problem using .key instead which I've included as an attachment if you want to use it in your solution.

konami_code.zip

BrennanFulmer commented 6 years ago

I made an error in that script, on line 21 it should be the following code instead:

if (step === 10) {