addEventListener()
Explanation-->
Let's understand what exactly is happening
-
- In this code, we first get a reference to the button element using the 'getElementById' method.
- We then add an event listener to the button using the addEventListener method, which listens for the 'click' event. When the button is clicked, the renderCourseFromUdemy function will be called.
1 Comments
.
ReplyDelete