Microsoft
98-382 · Question #8
98-382 Question #8: Real Exam Question with Answer & Explanation
Sign in or unlock 98-382 to reveal the answer and full explanation for question #8. The question stem and answer options stay visible for context.
Question
You are creating a function that does safe division. The function has the following requirements: => The function receives two parameters for the numerator and denominator. => If the denominator is zero, the function must return false. => If the denominator is not zero, the function must return true. You write the following code. Line numbers are included for reference only. ```javascript
01 function isSafeDivide(numerator, denominator) {
02 if (denominator = 0) {
03 return false;
04 } else {
05 return true;
06 }
07 }
Unlock 98-382 to see the answer
You've previewed enough free 98-382 questions. Unlock 98-382 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.