Question: Instructions Do This ---- | -[]--[]--[]-1 | -[]--[]--[]-1 This program will draw a building in the Debug Console. Run the program to see how it

 Instructions Do This ---- | -[]--[]--[]-1 | -[]--[]--[]-1 This program willdraw a building in the Debug Console. Run the program to seehow it works Add code to the program to draw at leastthree more floors to the building. | -[]--[]--[]- ------------| | -[]--[]--[]-1 Toolbox0 Version History Show Blocks Ul controls Control Workspace 1 // Function

Instructions Do This ---- | -[]--[]--[]-1 | -[]--[]--[]-1 This program will draw a building in the Debug Console. Run the program to see how it works Add code to the program to draw at least three more floors to the building. | -[]--[]--[]- ------------| | -[]--[]--[]-1 Toolbox 0 Version History Show Blocks Ul controls Control Workspace 1 // Function calls 2 roof(); 3 floor(); 4 lobby(); Math Variables Functions 6 // Function declarations 7- function roof() { 8 console.log(" =============='); 9 console.log(" | -1"); 10} 11 12 - function floor() { 13 console.log(" | -[]--[]--[]-1"); 14 console.log(" "); Run Debug Console Clear Watchers > Variable / Property + // Function calls roof(); floor(); lobby(); // Function declarations function roof() { console.log(" console.log(" } ="); 1"); function floor() { console.log(" | -[]--[]--[]-1"); console.log(" ----"); - } function lobby() { console.log(" ! --"); console.log(" |-------"); console.log(" |---- |---|"); } var count = 0; onEvent("button1", "click", function floors() { var count = count+1; }); var count = 0; ohEvent("button1", "click", function floors() { }); var count 0; onEvent("button1", "click", function floors() { var count = count+1 ; }); You need to call "function floor()" at least 4 times - once to draw each floor in the building. One was already done for you. Did you add three more calls? Check your spelling! Keep working

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!