Skip to content

Commit 05d39b3

Browse files
authored
Operator spacing and unclosed quotes
1 parent d39750f commit 05d39b3

File tree

1 file changed

+2
-2
lines changed
  • 1-js/02-first-steps/16-javascript-specials

1 file changed

+2
-2
lines changed

1-js/02-first-steps/16-javascript-specials/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ switch (age) {
216216
alert("Won't work"); // the result of prompt is a string, not a number
217217
218218
case "18":
219-
alert("This works!"");
219+
alert("This works!");
220220
break;
221221
222222
default:
@@ -273,7 +273,7 @@ We covered three ways to create a function in JavaScript:
273273
274274
275275
- Functions may have local variables: those declared inside its body. Such variables are only visible inside the function.
276-
- Parameters can have default values: `function sum(a=1, b=2) {...}`.
276+
- Parameters can have default values: `function sum(a = 1, b = 2) {...}`.
277277
- Functions always return something. If there's no `return` statement, then the result is `undefined`.
278278
279279

0 commit comments

Comments
 (0)