Skip to content

Commit 366f8ad

Browse files
committed
Merge branch 'sync-62299ed8'
2 parents fc4a559 + cdbdbbb commit 366f8ad

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,17 @@ alert( Math.pow(2, 10) ); // دو به توان ده = 1024
412412
413413
- `num.toString(base)` یک عدد را به یک رشته‌ی حرفی در سیستم عددی با پایه داده شده تبدیل می‌کند.
414414
415+
<<<<<<< HEAD
416+
<<<<<<< HEAD
415417
برای تبدیل مقادیری مثل `12pt` و `100px` به یک عدد:
418+
=======
419+
- Can write numbers directly in hex (`0x`), octal (`0o`) and binary (`0b`) systems.
420+
- `parseInt(str, base)` parses the string `str` into an integer in numeral system with given `base`, `2 ≤ base ≤ 36`.
421+
- `num.toString(base)` converts a number to a string in the numeral system with the given `base`.
422+
>>>>>>> 62299ed853674c4fd1427cd310516d5535bce648
423+
=======
424+
برای تبدیل مقادیری مثل `12pt` و `100px` به یک عدد:
425+
>>>>>>> master
416426
417427
- `parseInt/parseFloat` را برای تبدیلات ساده استفاده کنید که یک عدد را از یک رشته‌ی حرفی می‌خواند و سپس مقداری که قبل از بروز خطا خوانده‌ست را برمی‌گرداند.
418428

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +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-
- 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}`).
190-
- Then handlers are called on the target element itself.
191-
- 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}`.
189+
- When an event happens -- the most nested element where it happens gets labeled as the "target element" (`event.target`).
190+
- Then the event first moves from the document root down to the `event.target`, calling handlers assigned with `addEventListener(...., true)` on the way.
191+
- 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`.
192192

193193
Each handler can access `event` object properties:
194194

0 commit comments

Comments
 (0)