Perform different operations on provided array using their appropriate methods and return the result
Instructions
- There are a few functions added in the JS file, you need to add your code to perform the operations, find the examples below
- In the getEven function, you need to return the even numbers of array
- In the multiplyByN function, you need to return the array with the elements multiplied by n
- You would find more information about the functions in the play_with_array.js file itself
- You would receive an array as an input
- Return the result after peforming the desired operation
Run npm run test:file play_with_array to test your code