Which line of code can you use to replace the alert?

You have the following code

You discover that the displayGlobalProduct function displays a value of boat You need to change the function to display a value of car.
Which line of code can you use to replace the alert?
A. alert(eval(displayGlobalProduct, ‘product’));
B. alert(window.eval(product));
C. alert(window.eval(‘product’));
D. alert(eval(call(‘product"))):

microsoft-exams

One thought on “Which line of code can you use to replace the alert?

  1. I don’t see the correct answer (C doesn’t work for sure) can someone submit?
    I check all the possibilities.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.