You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/01-getting-started/1-intro/article.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
-
# ജവസ്ക്രിപ്റ്റിന്റെ ഒരു ഇൻട്രൊഡകഷൻ,
2
-
നമുക്ക് നോക്കാം ജവസ്ക്രിപ്റ്റന് എന്താണ് വലിയ പ്രെത്യേകതയെന്നു,നമുക്ക് അതുബ്കൊണ്ടു എന്തൊക്കെ നേടാം, പിന്നെ ഏതൊക്കെ മറ്റു ടെക്നോളജിസ് അതിന്റെ കൂടെ വർക് ചെയ്യുമെന്ന്.
1
+
# ജാവാസ്ക്രിപ്റ്റ് ഒരു ഇൻട്രൊഡകഷൻ,
2
+
നമുക്ക് നോക്കാം ജാവാസ്ക്രിപ്റ്റ് എന്താണ് വലിയ പ്രെത്യേകതയെന്നു,നമുക്ക് അതുബ്കൊണ്ടു എന്തൊക്കെ നേടാം, പിന്നെ ഏതൊക്കെ മറ്റു ടെക്നോളജിസ് അതിന്റെ കൂടെ വർക് ചെയ്യുമെന്ന്.
Copy file name to clipboardExpand all lines: 1-js/01-getting-started/2-manuals-specifications/article.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,13 @@
1
1
2
-
# മാനുവലും ഇതിന്റെ നിർദേശങ്ങളും
3
2
4
-
ഈ ബുക് ഒരു *ടൂട്ടോറിയൽ* ആണ്. ഇതു നിങ്ങളെ പതുക്കെ പഠിക്കാൻ സഹായിക്കും.പക്ഷെ ഒരിക്കൽ നിങ്ങൾ ഇത് പൂർത്തീകരിച്ചാൽ പിന്നെ നിങ്ങൾക്ക് മറ്റൊരു റിസോർസ് വേണ്ടി വരും.
3
+
# ഈ മാനുവലും അതിന്റെ പ്രത്യേകതകളും
5
4
6
-
## നിർദേശങ്ങൾ
5
+
ഈ ബുക് ഒരു *ടൂട്ടോറിയൽ* ആണ്. ഇതു നിങ്ങളെ പതിയെപ്പതിയെ ല്ഗ്വേജ് പഠിക്കാൻ സഹായിക്കും. ബേസിക് കാര്യങ്ങളൊക്കെ പഠിച്ചു കഴിഞ്ഞാൽ, പിന്നെ നിങ്ങൾക്ക് വേറൊരു സോഴ്സ് പിന്നെ വേണ്ടി വരും.
6
+
7
+
## കുറച്ചു കാര്യങ്ങൾ
8
+
9
+
[The ECMA-262 specification](https://www.ecma-international.org/publications/standards/Ecma-262.htm) ജാവാസ്ക്രിപ്റ്റിനെ കുറിച്ചു ആഴത്തിലുള്ള വിശദമായ ഒരു വിശകലനം നമുക്ക് നേടിത്തരുo. അതാണ് പ്രോഗ്രാമിന് രൂപം കൊടുക്കുന്നത്.
7
10
8
-
[ECMA-262 specification](https://www.ecma-international.org/publications/standards/Ecma-262.htm) ൽ ജാവസ്ക്രിപ്റ്റിനെ കുറിച്ചു വളരെ ആഴത്തിലും ഡീറ്റൈൽഡ് ആയും പറയുന്നുണ്ട്. ഇത് ലൻഗ്വേജിനെ തന്നെ വിവരിക്കുന്നു.
9
11
10
12
പക്ഷെ വളരെ ഫോർമലായത് കൊണ്ടു, തുടക്കമിത് മനസ്സിലാക്കാൻ നല്ല ബുദ്ധിമുട്ടായിരിക്കും. അതിനാൽ, വിശദാംശങ്ങളെക്കുറിച്ചുള്ള ഏറ്റവും വിശ്വാസ്യതയുള്ള ഡാറ്റ സ്രോതസ്സ് നിങ്ങൾക്ക് ആവശ്യമുണ്ടെങ്കിൽ, അതൊരു ശരിയായ സ്ഥലമാണ്. എന്നാൽ ഇത് സാദാരണ ഉപയോഗത്തിന് വേണ്ടിയല്ല.
11
13
@@ -15,9 +17,8 @@
15
17
16
18
കൂടാതെ,നിങ്ങളൊരു ബ്രൌസർ ഡെവലപ് ചെയ്യുകയാണെങ്കിൽ, കെ7റച്ചു കൂടി ഡീറ്റൈലായിട്ടൊരു [രണ്ടാം ഭാഗം](info:browser-environment) കിട്ടുന്നതാണ്.
17
19
18
-
## മാന്വൽസ്
19
20
20
-
-**MDN (Mozilla) JavaScript Reference**ഉദാഹരണങ്ങളും മറ്റു വിവരങ്ങളും അടങ്ങിയ ഒരു മാന്വൽ. Function കളെ കുറിച്ചും methods നെ കുറിച്ചുമെല്ലാം ആഴത്തിൽ അറിയാൻ ശ്രമിക്കുന്നത് നല്ലതാണ്.
21
+
-**MDN (Mozilla) JavaScript Reference**is a manual with examples and other information. It's great to get in-depth information about individual language functions, methods etc.
21
22
22
23
ഒന്നു നോക്കുക <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference>.
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/09-comparison/article.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,9 @@ In JavaScript they are written like this:
9
9
- Equals: `a == b`, please note the double equality sign `=` means the equality test, while a single one `a = b` means an assignment.
10
10
- Not equals. In maths the notation is <code>≠</code>, but in JavaScript it's written as <code>a != b</code>.
11
11
12
-
In this article we'll learn more about different types of comparisons, how JavaScript makes them, including important peculiarities.
12
+
In this article we'll learn more about different types of comparisons, how JavaScript makes them, including important peculiarities.
13
+
14
+
At the end you'll find a good recipe to avoid "javascript quirks"-related issues.
13
15
14
16
## Boolean is the result
15
17
@@ -196,13 +198,12 @@ We get these results because:
196
198
- Comparisons `(1)` and `(2)` return `false` because `undefined` gets converted to `NaN` and `NaN` is a special numeric value which returns `false` for all comparisons.
197
199
- The equality check `(3)` returns `false` because `undefined` only equals `null`, `undefined`, and no other value.
198
200
199
-
### Evade problems
200
-
201
-
Why did we go over these examples? Should we remember these peculiarities all the time? Well, not really. Actually, these tricky things will gradually become familiar over time, but there's a solid way to evade problems with them:
201
+
### Avoid problems
202
202
203
-
Just treat any comparison with `undefined/null` except the strict equality `===` with exceptional care.
203
+
Why did we go over these examples? Should we remember these peculiarities all the time? Well, not really. Actually, these tricky things will gradually become familiar over time, but there's a solid way to avoid problems with them:
204
204
205
-
Don't use comparisons `>= > < <=` with a variable which may be `null/undefined`, unless you're really sure of what you're doing. If a variable can have these values, check for them separately.
205
+
- Treat any comparison with `undefined/null` except the strict equality `===` with exceptional care.
206
+
- Don't use comparisons `>= > < <=` with a variable which may be `null/undefined`, unless you're really sure of what you're doing. If a variable can have these values, check for them separately.
Copy file name to clipboardExpand all lines: 1-js/05-data-types/02-number/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,7 +148,7 @@ There are two ways to do so:
148
148
149
149
1. Multiply-and-divide.
150
150
151
-
For example, to round the number to the 2nd digit after the decimal, we can multiply the number by `100`, call the rounding function and then divide it back.
151
+
For example, to round the number to the 2nd digit after the decimal, we can multiply the number by `100` (or a bigger power of10), call the rounding function and then divide it back.
Copy file name to clipboardExpand all lines: 1-js/06-advanced-functions/03-closure/article.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,7 @@ Rectangles on the right-hand side demonstrate how the global Lexical Environment
183
183
184
184
1. When the script starts, the Lexical Environment is pre-populated with all declared variables.
185
185
- Initially, they are in the "Uninitialized" state. That's a special internal state, it means that the engine knows about the variable, but it cannot be referenced until it has been declared with `let`. It's almost the same as if the variable didn't exist.
186
-
2. Then `let phrase` definition appears. There's no assignment yet, so its value is `undefined`. We can use the variable since this moment.
186
+
2. Then `let phrase` definition appears. There's no assignment yet, so its value is `undefined`. We can use the variable from this point forward.
187
187
3.`phrase` is assigned a value.
188
188
4.`phrase` changes the value.
189
189
@@ -286,7 +286,7 @@ Later, when `counter()` is called, a new Lexical Environment is created for the
286
286
287
287

288
288
289
-
Now when the code inside `counter()` looks for `count` variable, it first searches its own Lexical Environment (empty, as there are no local variables there), then the Lexical Environment of the outer `makeCounter()` call, where finds it and changes.
289
+
Now when the code inside `counter()` looks for `count` variable, it first searches its own Lexical Environment (empty, as there are no local variables there), then the Lexical Environment of the outer `makeCounter()` call, where it finds and changes it.
290
290
291
291
**A variable is updated in the Lexical Environment where it lives.**
0 commit comments