Question: 28. Given the following code 11 (function(window) 3 3 var obj- 5-5 obj.dreamOn function ( 6 6 console.log(I want to see the global scope! Let

 28. Given the following code 11 (function(window) 3 3 var obj-

28. Given the following code 11 (function(window) 3 3 var obj- 5-5 obj.dreamOn function ( 6 6 console.log("I want to see the global scope! Let me out!") 9 9 window.doer obj; 18 16 12 12 13 doer.dreamon() What (if anything) is missing from this code in order to get it to output the message of the "dreamOn" method? 4 Marks A. Nothing is missing. It will output "I want to see the global scope! Let me out!" B. Line 1 and Line 9 should use global instead of window C. The function definition in Line 5 is missing an argument. It should accept an argument by the name of window D. The attempted IIFE is not being invoked and passed in the window object. It's missing '(window' Line 11 right before the semicolon. 29. In style sheets, more than one rule can be assigned to a particular element, but the browser will follow only the rule that takes precedence rue B. False 30. Is JavaScript and ECMAScript are same? Explain if not

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!