New course! Every coder should learn Generative AI!
Try a free lesson+ 1
$(“input”).keydown(function(event){
Alert(event.which);
}
Or else
Will use for “which” function...when we use this function it’ll alert which key we’re pressed....
keydown,event,which