Skip to content

Commit 1008f48

Browse files
author
GADILA SHASHANK REDDY
committed
Incorporate changes from #21
1 parent 2d7d516 commit 1008f48

4 files changed

Lines changed: 41 additions & 7 deletions

File tree

book/languages/js/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Oh, hello there
22

3-
> This chapter has been authored by Konrad Klawikowski and Gadila Shashank Reddy.
3+
> This chapter has been authored by Skayo and Gadila Shashank Reddy.
44
5-
Welcome to the JavaScript chapter! I would like to let you know a bit more about
6-
JavaScript and programming in that language.
5+
Welcome to the JavaScript chapter! We would like to let you know a bit more about
6+
JavaScript and programming in JavaScript.

book/languages/js/advantages.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ static content was served and the user was only able to read it.
2121

2222
Even further improvements meant that JS was able to handle server-side scripts and computing and
2323
also used in developing native and stand-alone applications instead of being only restricted to the
24-
browser environment.
24+
browser environment. Also JacvaScript has a relatively high speed of execution though not as fast
25+
as C or Rust.

book/languages/js/conclusion.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ gateway to exploit negligent or non careful users.
1212

1313
## Regarding the authors
1414

15-
This chapter was originally written by Konrad Klawikowski and additions were made to it
16-
by Gadila Shashank Reddy. For the original chapter written by Konrad, see
17-
[here.](https://github.com/Skayo/Community-Programming-Book/tree/e4d4f35d8236ce589e6d8c35df5dd05388e3541f/book/languages/js)
15+
This chapter was originally written by Skayo and additions were made to it
16+
by Gadila Shashank Reddy. For the original content written by Konrad, see
17+
[here.](https://github.com/Skayo/Community-Programming-Book/tree/f8c9cf8fc2d7cad783f85393e3e5103f8bc76b35/book/languages/js)

book/languages/js/misc.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,36 @@
1212
* The Mozilla Foundation was founded in 1998 by the members of Netscape Communications.
1313

1414
* JS is licensed by Oracle to Netscape Communications then and currently to the Mozilla Foundation.
15+
16+
## An Example
17+
18+
This section will compare Hello World program in JavaScript with other languages.
19+
20+
### JavaScript
21+
22+
```JavaScript
23+
"use strict" // This declares strict mode and using it is a good security practice.
24+
console.log("Hello world!"); // semicolon is not mandatory but recommended
25+
```
26+
27+
### Kotlin
28+
29+
```Kotlin
30+
fun main(args: Array<String>) {
31+
println("Hello world!")
32+
}
33+
```
34+
35+
### Python
36+
37+
```Python
38+
print "Hello world!"
39+
```
40+
41+
### Ruby
42+
43+
```Ruby
44+
puts "Hello world!"
45+
```
46+
47+
Though the example was a simple one, we all start from writing Hello World, don't we? :)

0 commit comments

Comments
 (0)