mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-12 10:00:39 -04:00
chore(i18n,learn): processed translations (#54537)
Co-authored-by: Naomi <nhcarrigan@gmail.com>
This commit is contained in:
committed by
GitHub
parent
adfb87e898
commit
e6b05ee25d
@@ -87,7 +87,7 @@ assert(confirmEnding('Abstraction', 'action') === true);
|
||||
برنامجك يجب ألا يستخدم طريقة مبنية داخلياً (built-in method) باسم `.endsWith()` لحل التحدي.
|
||||
|
||||
```js
|
||||
assert(!/\.endsWith\(.*?\)\s*?;?/.test(code) && !/\['endsWith'\]/.test(code));
|
||||
assert(!/\.endsWith\(.*?\)\s*?;?/.test(__helpers.removeJSComments(code)) && !/\['endsWith'\]/.test(__helpers.removeJSComments(code)));
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
@@ -51,7 +51,7 @@ assert(repeatStringNumTimes('abc', -2) === '');
|
||||
لا ينبغي استخدام الوظيفة `repeat()` المدمجة.
|
||||
|
||||
```js
|
||||
assert(!/\.repeat/g.test(code));
|
||||
assert(!/\.repeat/g.test(__helpers.removeJSComments(code)));
|
||||
```
|
||||
|
||||
`repeatStringNumTimes("abc", 0)` يجب أن ينتج `""`.
|
||||
|
||||
Reference in New Issue
Block a user