وظيفة myFunction () {
"أنت صخرة!"
}
السماح varOne = myFunction. // set to equal a a function
اترك varTwo = myFunction ()؛ // set يساوي السلسلة "You rock!"
getNine الكود بحيث يتم تعيين result المتغير إلى القيمة التي يتم إرجاعها من استدعاء الدالة getNine . result المتغيرة بحيث يتم تعيينها إلى الرقم الذي ترجع الدالة getNine .
testString: 'assert(result == 9, "Your code should fix the variable result so it is set to the number that the function getNine returns.");'
- text: يجب أن تقوم التعليمات البرمجية الخاصة بك باستدعاء الدالة getNine .
testString: 'assert(code.match(/getNine\(\)/g).length == 2, "Your code should call the getNine function.");'
```