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/02-first-steps/02-structure/article.md
+9-12Lines changed: 9 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,17 @@
6
6
7
7
Statements are syntax constructs and commands that perform actions.
8
8
9
-
We've already seen a statement, `alert('Hello, world!')`, which shows the message "Hello, world!".
9
+
"Hello, world!" message കാണിക്കുന്ന statement ആയ `alert('Hello, world!')` നമ്മൾ ഇതിനു മുൻപ് തന്നെ ഒരു കണ്ടിട്ടുണ്ടായിരുന്നു.
10
10
11
-
We can have as many statements in our code as we want. Statements can be separated with a semicolon.
11
+
നമുക്ക് ആവശ്യമുള്ള എത്ര statements വേണമെങ്കിലും കോഡിൽ നമുക്ക് ചെയ്യാം. Semicolon ഉപയോഗിച്ചാണ് നമ്മൾ ഓരോ statement ഉം വേർതിരിക്കുന്നത്.
12
12
13
-
For example, here we split "Hello World" into two alerts:
13
+
ഉദാഹരണത്തിന്, ഇവിടെ നമ്മൾ "Hello World" രണ്ട് alertകളായിട്ടു തിരിക്കുന്നു:
14
14
15
15
```js run no-beautify
16
16
alert('Hello'); alert('World');
17
17
```
18
18
19
-
Usually, statements are written on separate lines to make the code more readable:
19
+
സാധാരണയായി, statementകൾ വായിക്കാൻ എളുപ്പത്തിനായി പല പല വരികളിലായിട്ടാണ് എഴുതുന്നത്:
20
20
21
21
```js run no-beautify
22
22
alert('Hello');
@@ -25,21 +25,18 @@ alert('World');
25
25
26
26
## Semicolons [#semicolon]
27
27
28
-
A semicolon may be omitted in most cases when a line break exists.
29
-
30
-
This would also work:
28
+
ഒരു line break വന്നാൽ പിന്നെ അവിടെ നമുക്ക് semicolon ഒഴിവാക്കാവുന്നതാണ്.
29
+
ഇതും work ആകും:
31
30
32
31
```js run no-beautify
33
32
alert('Hello')
34
33
alert('World')
35
34
```
36
35
37
-
Here, JavaScript interprets the line break as an "implicit" semicolon. This is called an [automatic semicolon insertion](https://tc39.github.io/ecma262/#sec-automatic-semicolon-insertion).
38
-
39
-
**In most cases, a newline implies a semicolon. But "in most cases" does not mean "always"!**
40
-
41
-
There are cases when a newline does not mean a semicolon. For example:
36
+
ഇവിടെ, ഒരു പുതിയ ലൈനിനെ JavaScript തനിയെ ഒരു semicolon ആയിട്ടു കണക്കാക്കും. ഇതിനെ [automatic semicolon insertion](https://tc39.github.io/ecma262/#sec-automatic-semicolon-insertion) എന്നു വിളിക്കുന്നു.
42
37
38
+
**മിക്കപ്പോഴും, ഒരു newline ,ഒരു semicolon നു തുല്യമായിരിക്കും. പക്ഷെ "മിക്കപ്പോഴും" എന്നു പറഞ്ഞാൽ "എപ്പോഴും" അല്ല!**
39
+
ചില സന്ദർഭങ്ങളിൽ ഒരു newline, ഒരു semicolon നു പകരമാവില്ല.ഉദാഹരണത്തിന്:
0 commit comments