Skip to content

Commit cdbdbbb

Browse files
committed
Merge sync-62299ed8.
2 parents aae3205 + fc4a559 commit cdbdbbb

3 files changed

Lines changed: 4 additions & 15 deletions

File tree

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,8 @@
4545
تگ `<script>` تعدادی attributes (صفات) دارد که امروزه کمتر از آنها استفاده می‌شود، ولی ممکن است در کدهای قدیمی همچنان آنها را ببینید :
4646

4747

48-
<<<<<<< HEAD
4948
صفت `type` : <code>&lt;script <u>type</u>=...&gt;</code>
5049
: نسخه قدیمی HTML یعنی HTML4 نیازمند تعیین `type` در تگ `<script>` بود. معمولا مقدار آن `type=text/javascript` بود. در حال حاضر دیگر این مورد الزامی نیست.
51-
=======
52-
The `type` attribute: <code>&lt;script <u>type</u>=...&gt;</code>
53-
: The old HTML standard, HTML4, required a script to have a `type`. Usually it was `type="text/javascript"`. It's not required anymore. Also, the modern HTML standard totally changed the meaning of this attribute. Now, it can be used for JavaScript modules. But that's an advanced topic, we'll talk about modules in another part of the tutorial.
54-
>>>>>>> 62299ed853674c4fd1427cd310516d5535bce648
5550

5651
صفت `language` : <code>&lt;script <u>language</u>=...&gt;</code>
5752
: مقصود از این صفت تعیین زبان اسکریپت است. از آنجایی که جاوا اسکریپت زبان پیش‌فرض است، نیازی به تعیین آن نیست.

1-js/05-data-types/02-number/article.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,7 @@ alert( isFinite(num) );
318318

319319
یک تابع از پیش آماده شده‌ی خاص [Object.is](mdn:js/Object/is) که مقادیر را مثل `===` مقایسه میکند، اما برای دو حالت مرزی قابل اعتمادتر است.
320320

321-
<<<<<<< HEAD
322321
۱. با `NaN` کار میکند: `Object.is(NaN, NaN) === true`، که چیز خوبیست.
323-
=======
324-
There is a special built-in method [`Object.is`](mdn:js/Object/is) that compares values like `===`, but is more reliable for two edge cases:
325-
>>>>>>> 62299ed853674c4fd1427cd310516d5535bce648
326322

327323
۲. مقادیر `0` و `-0` متفاوت هستند: `Object.is(0, -0) === false`، به ندرت اهمیت دارد، اما این مقادیر در اصل متفاوتند.
328324

@@ -416,13 +412,17 @@ alert( Math.pow(2, 10) ); // دو به توان ده = 1024
416412
417413
- `num.toString(base)` یک عدد را به یک رشته‌ی حرفی در سیستم عددی با پایه داده شده تبدیل می‌کند.
418414
415+
<<<<<<< HEAD
419416
<<<<<<< HEAD
420417
برای تبدیل مقادیری مثل `12pt` و `100px` به یک عدد:
421418
=======
422419
- Can write numbers directly in hex (`0x`), octal (`0o`) and binary (`0b`) systems.
423420
- `parseInt(str, base)` parses the string `str` into an integer in numeral system with given `base`, `2 ≤ base ≤ 36`.
424421
- `num.toString(base)` converts a number to a string in the numeral system with the given `base`.
425422
>>>>>>> 62299ed853674c4fd1427cd310516d5535bce648
423+
=======
424+
برای تبدیل مقادیری مثل `12pt` و `100px` به یک عدد:
425+
>>>>>>> master
426426
427427
- `parseInt/parseFloat` را برای تبدیلات ساده استفاده کنید که یک عدد را از یک رشته‌ی حرفی می‌خواند و سپس مقداری که قبل از بروز خطا خوانده‌ست را برمی‌گرداند.
428428

2-ui/2-events/02-bubbling-and-capturing/article.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,9 @@ There's a property `event.eventPhase` that tells us the number of the phase on w
186186

187187
The event handling process:
188188

189-
<<<<<<< HEAD
190189
- When an event happens -- the most nested element where it happens gets labeled as the "target element" (`event.target`).
191190
- Then the event first moves from the document root down to the `event.target`, calling handlers assigned with `addEventListener(...., true)` on the way.
192191
- Then the event moves from `event.target` up to the root, calling handlers assigned using `on<event>` and `addEventListener` without the 3rd argument or with the 3rd argument `false`.
193-
=======
194-
- Then the event moves down from the document root to `event.target`, calling handlers assigned with `addEventListener(..., true)` on the way (`true` is a shorthand for `{capture: true}`).
195-
- Then handlers are called on the target element itself.
196-
- Then the event bubbles up from `event.target` up to the root, calling handlers assigned using `on<event>` and `addEventListener` without the 3rd argument or with the 3rd argument `false/{capture:false}`.
197-
>>>>>>> 62299ed853674c4fd1427cd310516d5535bce648
198192

199193
Each handler can access `event` object properties:
200194

0 commit comments

Comments
 (0)