A developer wrote 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 or 5. Which two test cases will properly test scenarios for the fizzbuzz function? Choose 2 answers
Answer(s): B,C,D
A developer has code that calculates a restaurant bill, but generates incorrect answers while testing the code:function calculateBill ( items ) {let total = 0;total += findSubTotal(items);total += addTax(total);total += addTip(total);return total;}Which option allows the developer to step into each function execution within calculateBill?
Answer(s): A
The developer has a function that prints "Hello" to an input name. To test this, thedeveloper created a function that returns "World". However the following snippet does not print " Hello World".What can the developer do to change the code to print "Hello World" ?
Answer(s): B
A developer has the function, shown below, that is called when a page loads.function onload() {console.log("Page has loaded!");}Where can the developer see the log statement after loading the page in the browser?
Answer(s): C
Refer to the code below:let sayHello = () => {console.log (`Hello, world!');};Which code executes sayHello once, two minutes from now?
Post your Comments and Discuss Salesforce CRT-600 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the CRT-600 content, but please register or login to continue.