Skip to content

Commit 95ea755

Browse files
authored
Update article.md
1 parent 3c98cd0 commit 95ea755

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

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

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
# Hello, world!
1+
# سڵاو جیهان!
22

3-
This part of the tutorial is about core JavaScript, the language itself.
3+
ئەم بەشەی فێرکارییەکە باس لە ناوەکی جاڤاسکڕێپت دەکات.
44

5-
But we need a working environment to run our scripts and, since this book is online, the browser is a good choice. We'll keep the amount of browser-specific commands (like `alert`) to a minimum so that you don't spend time on them if you plan to concentrate on another environment (like Node.js). We'll focus on JavaScript in the browser in the [next part](/ui) of the tutorial.
5+
بەڵام ئێمە پێویستمان بە ژینگەیەکی کارکردنە بۆ بەڕێوەبردنی سکریپتەکانمان و بەو پێیەی ئەم فێرکارییە ئۆنلاینە، وێبگەڕە هەڵبژاردەیەکی باشە. ئێمە بڕی فەرمانە تایبەتەکانی وێبگەڕ کەم دەکەینەوە (وەک `alert`) بۆ ئەوەی کاتی ئێوە بەفیڕۆ نەچێت ئەگەر بڕیارە سەرنجت لەسەر ژینگەیەکی تر بێت (وەک Node.js) ئەم فێرکارییە سەبارەت بە Node.js نییە بەڵام فێربوونی بناغە و بنچینەکانی خودێ جاڤاسکڕێپت بەدڵنیایەو یارمەتی دەریی تۆ دەبێ لە داهاتوو ئەگەر ویستت Node.js فێربیت. ئێمە لە فێرکاری [داهاتوو](/ui) دا سەرنج قووڵتر دەخەینە سەر جاڤاسکڕێپت لە وێبگەڕەکانە. کەواتە سەرەتا با بزانین چۆن سکریپتێک بە لاپەرێکی وێبەو هاوپێچ بکەین. بۆ ژینگەکانی لای سێرڤەر (وەک Node.js)، دەتوانیت سکریپتەکە بە فەرمانێکی وەک `node my.js` جێبەجێ بکەیت.
66

7-
So first, let's see how we attach a script to a webpage. For server-side environments (like Node.js), you can execute the script with a command like `"node my.js"`.
87

98

10-
## The "script" tag
9+
## تەگ ئێسکریپت
1110

12-
JavaScript programs can be inserted almost anywhere into an HTML document using the `<script>` tag.
13-
14-
For instance:
11+
دەتوانرێت بەرنامەکانی جاڤاسکڕێپت لە نزیکەی هەر شوێنێکی بەڵگەنامەیەکی HTML دا بە بەکارهێنانی تاگی `<script>` دابنرێت.
1512

1613
```html run height=100
1714
<!DOCTYPE HTML>
@@ -23,7 +20,7 @@ For instance:
2320

2421
*!*
2522
<script>
26-
alert( 'Hello, world!' );
23+
alert( 'سڵاو ، جیهان' );
2724
</script>
2825
*/!*
2926

@@ -35,10 +32,10 @@ For instance:
3532
```
3633

3734
```online
38-
You can run the example by clicking the "Play" button in the right-top corner of the box above.
35+
دەتوانیت نموونەکە بەڕێوەببەیت بە کرتەکردن لەسەر دوگمەی "Play" لە گۆشەی سەرەوەی لای ڕاستی بۆکسەکەی سەرەوە.
3936
```
4037

41-
The `<script>` tag contains JavaScript code which is automatically executed when the browser processes the tag.
38+
تاگی `<script>` کۆدی جاڤاسکڕێپتی تێدایە کە بە شێوەیەکی ئۆتۆماتیکی جێبەجێ دەکرێت کاتێک وێبگەڕ تاگەکە پرۆسێس دەکات.
4239

4340

4441
## Modern markup

0 commit comments

Comments
 (0)