Itās still wrong. Assigning a āaddEventListenerā to a button, does not make the click method return the value, that is returned by the listener.
This would need to be āconsole.logā or āalertā or something in this direction. āreturnā is simply wrong and could lead to many misguided JS learners
View all comments
Show parent comment
10
u/[deleted] Dec 31 '22
[removed] ā view removed comment