Using Javascript, Write a function called “addTo” that will add a value to an array based on the position specified.
The function will accept three parameters, the array of values, the value to be entered, and a
string which identifies the position. The positions can be either ‘front’ or ‘back’. Invalid position values should throw an exception with an appropriate message. You are expected to use the appropriate methods of the array (list).
1
Expert's answer
2019-02-08T19:41:43-0500
Dear Aaron, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment