Pre-Summer Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ac4s65

A developer has a fizzbuzz function that, when passed in a number, returns the following:'...

A developer has a fizzbuzz function that, when passed in a number, returns the following:

    ' fizz ' if the number is divisible by 3.

    ' buzz ' if the number is divisible by 5.

    ' fizzbuzz ' if the number is divisible by both 3 and 5.

    Empty string ' ' if the number is divisible by neither 3 nor 5.

Which two test cases properly test scenarios for the fizzbuzz function?

A.

let res = fizzbuzz(true);

console.assert(res === ' ' );

B.

let res = fizzbuzz(3);

console.assert(res === ' ' );

C.

let res = fizzbuzz(5);

console.assert(res === ' fizz ' );

D.

let res = fizzbuzz(15);

console.assert(res === ' fizzbuzz ' );

JavaScript-Developer-I PDF/Engine
  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions
buy now JavaScript-Developer-I pdf
Get 65% Discount on All Products, Use Coupon: "ac4s65"