Skip to content

Commit d331e76

Browse files
committed
Merge pull request #125 from passy/patch-3
Update JS tutorial 1
2 parents 37ac69c + 197ef3d commit d331e76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

js/lesson1/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ Now let's extend out function to take in **arguments**. We want it to say hello
301301
```js
302302
function hello(name) {
303303
console.log("Hello " + name + "!");
304-
};
304+
}
305305
```
306306

307307
Arguments are a list of variables that will be given when the function is called. Think of them as placeholders.
@@ -323,7 +323,7 @@ Let's write an improved version of this that shows a small dialog with the messa
323323
> We'll only give you a part of the function, try to make this work.
324324
325325
```js
326-
function popupHello() {
326+
function popupHello(name) {
327327
alert("Hello " + name);
328328
}
329329
```

0 commit comments

Comments
 (0)