JSFiddle - React, Tailwind, and code Playground
by Tgwizman
JavaScript
Code = [38,38,40,40,37,39,37,39,98,97,13];
a=[];document.onkeypress=function(e){c=e.keyCode;if(c==0){a.push(e.charCode)}else{a.push(c)}t=1;for(i=Code.length;i>0;i--){if(a[a.length-i]!==Code[Code.length-i])t=0}if(t==1)console.log('Code correct! =D')}