Skip to content

Commit

Permalink
fixing some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TeaByte committed Mar 10, 2024
1 parent c7a1757 commit e3edb61
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions courses/loops/count-backwards-with-a-for-loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ console.log(ourArray);

سيحتوي `ourArray` الآن على `[10، 8، 6، 4، 2]`.

```js


```

<div class="quiz">
قم بتعويض الفراغات في الكود الموجود في المحرر لطباعة الأرقام الزوجية بين 10 و 0 .
</div>
2 changes: 1 addition & 1 deletion courses/loops/iterate-using-for-loops.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ console.log(ourArray);

<!-- الكويز يكون عمل مصمفوفه ارقام فرديه -->
<div class="quiz">
بإستخدام حلقة `for`، قم بتخزين الأرقام الفردية بين 1 و 9 في مصفوفة في المتغير `oddNumbers`.
بإستخدام حلقة <code>for</code>، قم بتخزين الأرقام الفردية بين 1 و 9 في مصفوفة في المتغير <code>oddNumbers</code>.
</div>
2 changes: 1 addition & 1 deletion courses/objects/accessing-nested-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ console.log(ourStorage.desk.drawer);
`OurStorage.desk.drawer` هو سلسلة `stapler`.

<div class="quiz">
قم بكتابة الكود الذي يقوم بطباعة السرعة القصوى للطائرة فقط!!!
قم بكتابة الكود الذي يقوم بطباعة السرعة القصوى للطائرة (<code>maxSpeed</code>)
</div>
2 changes: 1 addition & 1 deletion courses/objects/manipulating-complex-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ const ourMusic = [
</mark>

<div class="quiz">
قم بتغير العنصر <code>wars</code> من الكائن <code>fighter</code> و قم بإضافة حرب أكتوبر <code>october-73</code> إلى المصفوفة.
قم بتغير العنصر <code>wars</code> من الكائن <code>fighter</code> واضاف عليه حرب أكتوبر <code>october-73</code> إلى المصفوفة.
</div>
2 changes: 1 addition & 1 deletion courses/objects/testing-objects-for-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ checkForProperty({ top: "hat", bottom: "pants" }, "middle"); // false
يُرجع استدعاء الدالة `checkForProperty` الأول `true`، بينما يُرجع الثاني `false`.

<div class="quiz">
قم بكتابة سطر برمجي يقوم بالتحقق من وجود خاصية `speed` على الكائن `fighter` و من ثم طباعة النتيجة في الكونسول.
قم بكتابة سطر برمجي يقوم بالتحقق من وجود خاصية <code>speed</code> على الكائن <code>fighter</code> و من ثم طباعة النتيجة في الكونسول.
</div>
2 changes: 1 addition & 1 deletion testcases/objects/testing-objects-for-properties.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// the code must contain this line console.log(fighter.hasOwnProperty("speed"))
const regex = /console.log\((\w+)\.hasOwnProperty\("(\w+)"\)\)/;
const regex = /console.log\((\w+)\.hasOwnProperty\("(speed)"\)\)/;
if (regex.test(code)) {
isPass = true;
} else {
Expand Down

0 comments on commit e3edb61

Please sign in to comment.