Summer Special Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 8w52ceb345

A developer wrote a fizzbuzz function thatwhen passed in a number, returns thefollowing:● ‘Fizz’ if...

A developer wrote a fizzbuzz function thatwhen 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 or 5.

Whichtwo test cases will properly test scenarios for the fizzbuzz function?

Choose 2 answers

A.

let res = fizzbuzz(5);console.assert ( res === ‘ ’ );

B.

let res = fizzbuzz(15);console.assert ( res === ‘ fizzbuzz ’ )

C.

let res = fizzbuzz(Infinity);console.assert ( res === ‘ ’ )

D.

let res = fizzbuzz(3);console.assert ( res === ‘ buzz ’ )

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 60% Discount on All Products, Use Coupon: "8w52ceb345"