mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-31 06:01:50 -05:00
1.7 KiB
1.7 KiB
id, title, challengeType, videoUrl, forumTopicId, dashedName
| id | title | challengeType | videoUrl | forumTopicId | dashedName |
|---|---|---|---|---|---|
| bd7123c9c441eddfaeb5bdef | فهم الحالات المنطقية (Understanding Boolean Values) | 1 | https://scrimba.com/c/c9Me8t4 | 301176 | understanding-boolean-values |
--description--
نوع آخر من البيانات هو حالة المنطقية. يمكن أن يكون للحالات المنطقية حالة واحدة فقط من حالتين: true أو false. إنها في الأساس كمفاتيح تشغيل صغيرة لإيقاف وبدء التشغيل، حيث إن true يبدأ التشغيل و false يوقفه. وهاتان الحالتان تستبعد إحداهما الأخرى.
ملاحظة: القيم الحالة المنطقية لا تكتب أبدا باستخدام علامات الاقتباس. المقطعين "true" و "false" ليست حالتي منطقية وليس لها معنى خاص في JavaScript.
--instructions--
عدّل الوظيفة welcomeToBooleans بحيث ترجع true بدلاً من false عند النقر على زر التشغيل.
--hints--
يجب أن تقوم الوظيفة welcomeToBooleans() بإرجاع حالة منطقية (true, أو false).
assert(typeof welcomeToBooleans() === 'boolean');
يجب أن يرجع welcomeToBooleans() حالة true.
assert(welcomeToBooleans() === true);
--seed--
--after-user-code--
welcomeToBooleans();
--seed-contents--
function welcomeToBooleans() {
// Only change code below this line
return false; // Change this line
// Only change code above this line
}
--solutions--
function welcomeToBooleans() {
return true; // Change this line
}