Question: Declare a variable named cellPhonellumbers and assign it an array containing 3 nested arrays of phone numbers. For example: Next declare a function named createPhoneNumbers
Declare a variable named cellPhonellumbers and assign it
an array containing nested arrays of phone numbers.
For example:
Next declare a function named createPhoneNumbers that
takes an Array as the parameter.
Inside of the function, use arrey methods to join the phone
numbers together with a dash, push those values into a
storage arrey and then join the results. For example, the outpl
should be:
You must use Array methods.
Retum the storage array
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
