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"))):
I don’t see the correct answer (C doesn’t work for sure) can someone submit?
I check all the possibilities.