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 will](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f32231e581f_03366f3223172f96.jpg)


![three more floors to the building. | -[]--[]--[]- ------------| | -[]--[]--[]-1 Toolbox](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f322339cb2d_03566f322334de3f.jpg)

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
Get step-by-step solutions from verified subject matter experts
