section 4. Javscript in the Browser: DOM Manipulation and Events


The DOM and DOM Manipulation



First DOM Access and Manipulation


Events and Event Handling : Rolling the Dice

What are Events?
Events : Notification that are sent to notify the code that something happended on the webpage.
Examples : clicking a button, resizing the window, scrolling down or pressing the key.
Event listener : A function that performs an action based on a certain event. It waits for a specific event to happen.


Updating Scores and Changing the Active Player



Implementing the ‘HOLD’ Function and the DRY Principle


Creating a Game Initialization Function


Finishing Touches : State Variable


댓글 남기기

Close Menu