Another JavaScript question. Then this code: The value of rating is BBB. After the following code executes, what displays in the alter box? JavaScript: switch (rating){ case "AAA" : window.alert("Highest Quality"); break; case "AA" : window.alert("High Quality"); break; case "A" : window.alert("Upper Medium"); break; case "BBB" : window.alert("Medium "); break; case "BB" : window.alert("Speculative"); break; case "B", "CCC", "C" : window.alert("Highly Speculative "); break; default : window.alert("You did not enter a valid bond rating!"); break; }
... case "BBB" : window.alert("Medium "); break; ... This will execute displaying a dialog box with "Medium" in it. http://i.imgur.com/5hGdC.jpg
Join our real-time social learning platform and learn together with your friends!