Skip to content

Commit

Permalink
Improves a sample code (mdn#17717)
Browse files Browse the repository at this point in the history
* Improves a sample code

* fix a typo

* Undo syntax box changes

Co-authored-by: Jean-Yves Perrier <[email protected]>
  • Loading branch information
OnkarRuikar and teoli2003 authored Jun 28, 2022
1 parent 0f6a86a commit f001a9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/api/mediarecorder/istypesupported/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ const types = ["video/webm",
"audio/webm\;codecs=opus",
"video/mpeg"];

for (let i in types) {
console.log( "Is " + types[i] + " supported? " + (MediaRecorder.isTypeSupported(types[i]) ? "Maybe!" : "Nope :("));
for (const type of types) {
console.log( "Is " + type + " supported? " + (MediaRecorder.isTypeSupported(type) ? "Maybe!" : "Nope :("));
}
```

Expand Down

0 comments on commit f001a9d

Please sign in to comment.