We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3415953 + 05d39b3 commit 3f12793Copy full SHA for 3f12793
1 file changed
1-js/02-first-steps/16-javascript-specials/article.md
@@ -216,7 +216,7 @@ switch (age) {
216
alert("Won't work"); // the result of prompt is a string, not a number
217
218
case "18":
219
- alert("This works!"");
+ alert("This works!");
220
break;
221
222
default:
@@ -273,7 +273,7 @@ We covered three ways to create a function in JavaScript:
273
274
275
- 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) {...}`.
+- Parameters can have default values: `function sum(a = 1, b = 2) {...}`.
277
- Functions always return something. If there's no `return` statement, then the result is `undefined`.
278
279
0 commit comments