( fyi it says making your code smaller in the title )
instead of writing document.querySelector("#searchInput") you could just define a variable like you did searchWord and you see when adding the evenlistener and in the if statement and when getting the value
( fyi it says making your code smaller in the title )
instead of writing
document.querySelector("#searchInput")
you could just define a variable like you didsearchWord
and you see when adding the evenlistener and in the if statement and when getting the value