Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5
There are two minor issues. #1 You forgot the script tag #2 you misspelled your function in the script.
30th Jun 2022, 6:41 PM
Chris Coder
Chris Coder - avatar
+ 1
Yousuf Arman There is nothing wrong, you are just not calling the function. So call function to get alert
30th Jun 2022, 6:02 PM
A͢J
A͢J - avatar
0
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
30th Jun 2022, 8:33 PM
A͢J
A͢J - avatar
0
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.
1st Jul 2022, 3:09 PM
Junior
Junior - avatar