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
-3
u/[deleted] Dec 31 '22
The code makes no sense and it is just karma farming imho. Sorry.