Skip to content

Commit 34ab022

Browse files
committed
minor fixes
1 parent bd0921b commit 34ab022

File tree

1 file changed

+2
-2
lines changed
  • 1-js/02-first-steps/17-arrow-functions-basics

1 file changed

+2
-2
lines changed

1-js/02-first-steps/17-arrow-functions-basics/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ let sum = function(a, b) {
3333
alert( sum(1, 2) ); // 3
3434
```
3535

36-
As you can, see `(a, b) => a + b` means a function that accepts two arguments named `a` and `b`. Upon the execution, it evaluates the expression `a + b` and returns the result.
36+
As you can see, `(a, b) => a + b` means a function that accepts two arguments named `a` and `b`. Upon the execution, it evaluates the expression `a + b` and returns the result.
3737

3838
- If we have only one argument, then parentheses around parameters can be omitted, making that even shorter.
3939

@@ -86,7 +86,7 @@ Like this:
8686
let sum = (a, b) => { // the curly brace opens a multiline function
8787
let result = a + b;
8888
*!*
89-
return result; // if we use curly braces, then we need an explicit "return"
89+
return result; // if we use curly braces, then we need an explicit "return"
9090
*/!*
9191
};
9292

0 commit comments

Comments
 (0)