Video upload date:  · Duration: PT1H46M27S  · Language: EN

You are working on a JavaScript function github video

copilot-gh-300 video for you are working on a JavaScript function calculateDiscount(price, discountPercentage) that applies a percentage discount to a given

This is a dedicated watch page for a single video.

Full Certification Question

You are working on a JavaScript function calculateDiscount(price, discountPercentage) that applies a percentage discount to a given price. The function looks like this: function calculateDiscount ( price , discountPercentage ) { if ( price 100 ) { return null ; } return price - ( price * discountPercentage / 100 ); } You want to generate unit tests for this function using GitHub Copilot. What is the most effective approach to utilize Copilot for generating relevant test cases, including edge cases?