Skip to content

Commit a5ff770

Browse files
authored
Merge pull request #477 from odv/en
Added missing parenthesis in the functional class pattern example and removed an extra *so* from a paragraph
2 parents 5f340d0 + c1770a3 commit a5ff770

File tree

2 files changed

+2
-2
lines changed
  • 1-js

2 files changed

+2
-2
lines changed

1-js/02-first-steps/01-hello-world/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The tutorial that you're reading is about the core JavaScript, that is platform-independant. Further on you will be able learn Node.JS and other platforms that use it.
44

5-
But we need a working environment to run our scripts, and, just because this book is online, the browser a good choice. We'll keep the amount of browser-specific commands (like `alert`) to minimum, so that you don't spend time on them if you plan to concentrate on another environment like Node.JS. From the other hand, browser details are explained in detail in the [next part](/ui) of the tutorial. So
5+
But we need a working environment to run our scripts, and, just because this book is online, the browser a good choice. We'll keep the amount of browser-specific commands (like `alert`) to minimum, so that you don't spend time on them if you plan to concentrate on another environment like Node.JS. From the other hand, browser details are explained in detail in the [next part](/ui) of the tutorial.
66

77
So first let's see how to attach a script to the webpage. For server-side environments you can just execute it with a command like `"node my.js"` for Node.JS.
88

1-js/07-object-oriented-programming/08-class-patterns/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The constructor function below can be considered a class according to the defini
2121
```js run
2222
function User(name) {
2323
this.sayHi = function() {
24-
alert(name;
24+
alert(name);
2525
};
2626
}
2727

0 commit comments

Comments
 (0)