Update the function arrayOfSquares
in a way that it should return a new array containing the squares of each number in the input array passed to it.
For example:
Update the function updateAsAscending
that accepts an array of numbers as a parameter to return a new array such that the numbers are in ascending order.
For example:
We are not displaying the answer for this challenge.
We do this because we want you to challenge yourself
and
not give in to the temptation of looking at the solution.
We also don't want to leave you stuck, so if you feel
you have tried enough and are still unable to solve
this challenge, feel free to ask in our community.
Here is the link to join the community.