Question: RUN CODE TEST CASES ASSIGNMENT DOCS GRADE MORE Mis activity was due on January 31, 2021 5 points Status: Not Submitted You are given an

RUN CODE TEST CASES ASSIGNMENT DOCS GRADE MORE Mis activity was due on January 31, 2021 5 points Status: Not Submitted You are given an array of names of people who are in line for movie tickets. Use the remove element to remove the first person from the line twice, as if you have just given them their tickets. var line = ["Sam", "Lisa", "Laurie", "Bob", "Ryan"); You should write a function to print everyone in line. Then print the line before and after removing the people, The console should print this: Sam, Lisa, Laurie, Bob, Ryan Laurie, Bob, Ryan ENG US 10:44 AM 2/5/2021 ystudent/1972033/section/158240/assignment/26844696/ badges are Savior call Enba ap score a tion Practice 77.4: Remove From Line Savo 5 1 function start(){ 2 var line - ("Sam", "Lisa", "Laurie", "Bob", "Ryan"); 3 newLine(line); 4 } 6. function newLine(arr) { println(arr); arr.remove(); arr.remove(); println(arr); 11 } 7 9 10 7.1 7.2 7.3 7.4 7.5 7.6 7. search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
