Skip to content

Commit 087875b

Browse files
committed
minor
1 parent bf85f46 commit 087875b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • 1-js/4-data-structures/10-arguments-pseudoarray

1-js/4-data-structures/10-arguments-pseudoarray/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ function showWarning(width, height, title, contents) {
260260

261261
```js
262262
function showWarning(width, height, title, contents) {
263-
if (width !== undefined) width = 200;
264-
if (height !== undefined) height = 100;
265-
if (title !== undefined) title = "Предупреждение";
263+
if (width === undefined) width = 200;
264+
if (height === undefined) height = 100;
265+
if (title === undefined) title = "Предупреждение";
266266

267267
//...
268268
}

0 commit comments

Comments
 (0)