Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions exercises/19 - Webcam Fun/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ The last function we'll want to create is one that will bring functionality to t
const paintToCanvas = () => { /* ... */};
```

- In the body of this function, declare two `const` variables and define them
- In the body of this function, declare two `const` variables and define them
as the `video` element's width and height, and update the `canvas` width and height
to reflect those values.

```JavaScript
```JavaScript
const paintToCanavas = () => {
const width = video.videoWidth;
const height = video.videoHeight;
Expand All @@ -118,7 +118,7 @@ The last function we'll want to create is one that will bring functionality to t

/* More to do... */
};
```
```

- Still in the body of the function, return the _interval ID_ of a `setInterval()`
function call, and within the body of that function call, draw the current `video`
Expand Down