What's wrong with this one? | Sololearn: Learn to code for FREE!


What's wrong with this one?


6/30/2022 5:56:58 PM

Yousuf Arman

4 Answers

New Answer


There are two minor issues. #1 You forgot the script tag #2 you misspelled your function in the script.


Yousuf Arman There is nothing wrong, you are just not calling the function. So call function to get alert


Yousuf Arman You called function on click event but you have missed opening script tag. Please after changing anything in code, verify what changes you have done


1: you have <button onclick=“”… in your script tag remove that and put it under the <p> or where u would like 2: You misspelled your function.