mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-30 10:00:18 +02:00
adding captions to call out video content
This commit is contained in:
@@ -191,6 +191,8 @@ Take a minute to watch a video on using `const`, `let` and `var`
|
||||
|
||||
[](https://youtube.com/watch?v=JNIXfGiDWM8 "Types of variables")
|
||||
|
||||
> Click the image above for a video about variables.
|
||||
|
||||
### Add start logic
|
||||
|
||||
To begin the game, the player will click on start. Of course, we don't know when they're going to click start. This is where an [event listener](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) comes into play. An event listener will allow us to listen for something to occur (an event) and execute code in response. In our case, we want to execute code when the user clicks on start.
|
||||
|
Reference in New Issue
Block a user