Skip to content

Commit 2bb2589

Browse files
AntiHerotshemsedinov
authored andcommitted
fix: solve puncuation errors and edit translation
1 parent 6dcc49e commit 2bb2589

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/en/1-2-Examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## 1.2. Examples in JavaScript, Python and C languages
22

3-
We will write code examples in different languages, but preference will not be given to the best, beautiful and fast, but to those that cannot be avoided. We will take `JavaScript` as the most common, `Python`, because there are areas where it is impossible to go without it and `C`, as a language close enough to assembly language, which is still very relevant and has had the significant influence on modern languages ​​in terms of syntax and ideas it contains. All three are very far from the language of my dreams, but this is what we have. At first glance, `Python` is very different from `JavaScript` and other C-like languages, although this is only at first glance, we will show that it is very similar to `JavaScript` since the type system, data structures and especially the built-in collections are very similar in them. Although syntactically the difference in the code blocks organization using indentation and curly brackets `{}` is striking the eye, in reality, such a difference is not so significant, and there is much more in common between `JavaScript` and `Python` than between any of them and the language `C`.
3+
We will write code examples in different languages, but preference will not be given to the best, beautiful and fast, but to those that are indispensable. We will take `JavaScript` as the most common, `Python`, because there are areas where you cannot do without it and `C`, language close enough to assembly language, which is still very relevant and has had the significant influence on modern languages ​​in terms of syntax and built-it ideas. All three are very far from the language of my dreams, but this is what we have. At first glance, `Python` is very different from `JavaScript` and other C-like languages, although this is only at first glance, we will show that it is very similar to `JavaScript` since the type system, data structures and especially the built-in collections are very similar in them. Although syntactically, the difference in the code blocks organization using indentation and curly brackets `{}` is striking the eye, in reality, such a difference is not so significant, and there is much more in common between `JavaScript` and `Python` than between any of them and the language `C`.
44

5-
We will not start by learning the syntax but immediately by reading bad code and searching for errors in it. Let's take a look at the following snippets, the first one will be in `JavaScript`:
5+
We will not start over by learning the syntax, but immediately by reading bad code and searching for errors in it. Let's take a look at the following snippets, the first one will be in `JavaScript`:
66

77
```js
88
let first_num = 2;
@@ -11,7 +11,7 @@ let sum = firstNum + secondNum;
1111
console.log({ sum });
1212
```
1313

14-
Try to understand what is written here and where there may be errors. And then compare this code with its translation to `C`.
14+
Try to understand what is written here, and where there may be errors. And then compare this code with its translation to `C`.
1515

1616
```c
1717
#include <stdio.h>

0 commit comments

Comments
 (0)