File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
1-js/02-first-steps/16-javascript-specials Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments