View all questions & answers for the 1D0-735 exam
Scarlet has the following code in her script:
Var namesArr =[‘’Joseph’,’ Charlotte’’, ‘’Nicole’’];
She wants to add the name Hank to the end of the array so that its length is 4. What code should she use?
namesArr [4] ''Hank'';
namesArr push (''Hank'');
namesArr unshift (''Hank'');
namesArr .shift (''Hank'');
Submit