- ID: 11038553
- Task 1: A function is created and the function takes an array of numbers as input and returns a new array where even numbers are squared and odd numbers are tripled.
- Task 2: A function is created that takes two arguments which are all arrays. The first array is an array of strings and the second is an array of numbers processed by the function in Task 1. The function modifies each string based on its corresponding number. The function capitalizes the entire string if the number is even else it makes it lowercase if odd.
- Task 3 : A function is created that which takes two parameters an array of original names and one of modified names and then returns an array of objects containing an ID , original name and modified name.