Skip to content

Commit 197ef3d

Browse files
committed
Update JS tutorial 1
Included one unnecessary semicolon, which a vigilant student caught, and a missing parameter to a function
1 parent 3a56149 commit 197ef3d

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)