fix: converted single to triple backticks11 (#36238)

This commit is contained in:
Randell Dawson
2019-06-20 13:42:13 -07:00
committed by Tom
parent 397014136e
commit 54d303ce1f
75 changed files with 1673 additions and 1430 deletions

View File

@@ -10,11 +10,12 @@ localeTitle: الرياضيات
يوضح المثال التالي كيفية استخدام كائن `Math` لكتابة دالة تقوم بحساب مساحة دائرة:
`function calculateCircleArea(radius) {
return Math.PI * Math.pow(radius, 2);
}
calculateCircleArea(1); // 3.141592653589793
`
```javascript
function calculateCircleArea(radius) {
return Math.PI * Math.pow(radius, 2);
}
calculateCircleArea(1); // 3.141592653589793
```
### موارد آخرى

View File

@@ -8,11 +8,12 @@ localeTitle: الرياضيات Ceil
### أمثلة
`Math.ceil(0.1) // 1
Math.ceil(1.3) // 2
Math.ceil(-0.9) // -0
Math.ceil(-1.5) // -1
`
```javascript
Math.ceil(0.1) // 1
Math.ceil(1.3) // 2
Math.ceil(-0.9) // -0
Math.ceil(-1.5) // -1
```
### معلومات اكثر:

View File

@@ -8,12 +8,13 @@ localeTitle: الطابق الرياضيات
### أمثلة
`Math.floor(0.9) // 0
Math.floor(1.3) // 1
Math.floor(0.5) // 0
Math.floor(-0.9) // -1
Math.floor(-1.3) // -2
`
```javascript
Math.floor(0.9) // 0
Math.floor(1.3) // 1
Math.floor(0.5) // 0
Math.floor(-0.9) // -1
Math.floor(-1.3) // -2
```
### معلومات اكثر:

View File

@@ -10,8 +10,9 @@ localeTitle: الرياضيات ماكس
### بناء الجملة
`Math.max(value1, value2, value3, ...);
`
```js
Math.max(value1, value2, value3, ...);
```
### المعلمات
@@ -25,27 +26,31 @@ localeTitle: الرياضيات ماكس
_الأرقام كمعلمات_
`Math.max(4, 13, 27, 0, -5); // returns 27
`
```js
Math.max(4, 13, 27, 0, -5); // returns 27
```
_معلمة غير صالحة_
`Math.max(4, 13, 27, 'eight', -5); // returns NaN
`
```js
Math.max(4, 13, 27, 'eight', -5); // returns NaN
```
_صفيف كمعلمة ، استخدام السبريد (…)_
`let numbers = [4, 13, 27, 0, -5];
Math.max(...numbers); // returns 27
`
```js
let numbers = [4, 13, 27, 0, -5];
Math.max(...numbers); // returns 27
```
_صفيف كمعلمة ، باستخدام تطبيق_
`let numbers = [4, 13, 27, 0, -5];
Math.max.apply(null, numbers); // returns 27
`
```js
let numbers = [4, 13, 27, 0, -5];
Math.max.apply(null, numbers); // returns 27
```
#### معلومات اكثر:

View File

@@ -8,9 +8,10 @@ localeTitle: الرياضيات مين
يمكنك تمرير أي عدد من الحجج.
`Math.min(7, 2, 9, -6);
// returns -6
`
```javascript
Math.min(7, 2, 9, -6);
// returns -6
```
#### معلومات اكثر:

View File

@@ -10,8 +10,9 @@ localeTitle: الرياضيات PI
## أمثلة
`Math.PI \\ 3.141592653589793
`
```js
Math.PI \\ 3.141592653589793
```
#### معلومات اكثر:

View File

@@ -14,12 +14,13 @@ localeTitle: الرياضيات الأسرى
#### أمثلة
`Math.pow(5, 2); // 25
Math.pow(7, 4); // 2401
Math.pow(9, 0.5); // 3
Math.pow(-8, 2); // 64
Math.pow(-4, 3); // -64
`
```js
Math.pow(5, 2); // 25
Math.pow(7, 4); // 2401
Math.pow(9, 0.5); // 3
Math.pow(-8, 2); // 64
Math.pow(-4, 3); // -64
```
#### معلومات اكثر:

View File

@@ -12,10 +12,11 @@ localeTitle: الرياضيات عشوائي
#### مثال
`function randomInRange(min, max) {
return Math.random() * (max - min) + min;
}
`
```js
function randomInRange(min, max) {
return Math.random() * (max - min) + min;
}
```
#### معلومات اكثر:

View File

@@ -16,12 +16,13 @@ localeTitle: الرياضيات Sqrt
#### أمثلة
`Math.sqrt(25); // 5
Math.sqrt(169); // 13
Math.sqrt(3); // 1.732050807568
Math.sqrt(1); // 1
Math.sqrt(-5); // NaN
`
```js
Math.sqrt(25); // 5
Math.sqrt(169); // 13
Math.sqrt(3); // 1.732050807568
Math.sqrt(1); // 1
Math.sqrt(-5); // NaN
```
#### معلومات اكثر:

View File

@@ -10,12 +10,13 @@ localeTitle: Math Trunc
### أمثلة
`Math.trunc(0.1) // 0
Math.trunc(1.3) // 1
Math.trunc(-0.9) // -0
Math.trunc(-1.5) // -1
Math.trunc('foo') // NaN
`
```javascript
Math.trunc(0.1) // 0
Math.trunc(1.3) // 1
Math.trunc(-0.9) // -0
Math.trunc(-1.5) // -1
Math.trunc('foo') // NaN
```
### معلومات اكثر: