Ad

Write a function to return the highest number of a given array.

eg.: ['1', '2', '3'] -> 3

const highestNumber = function(array){
  //return the highest number
}

Given an array numbers and an array of index numbers, sort only those numbers whose indexes are specified in the index array in ascending order. Leave the rest of the numbers in the numbers array at the same position as they are now.

Input:
numbers = [5, 8, 6, 3, 4]
index = [0,3]

Output => [3, 8, 6, 5, 4]

function sortNumbersAtIndexes(numbers, index) {
  // start sorting here
  
  }

There are two parameters: 'Search' array and 'Find' array. The function should determine whether any of the elements from the 'Find' array are present in the 'Search' array. If any matching element is found, the function should return true; otherwise, it should return false.

Find array = [1, 2, 3]

Search array = [3, 4, 5, 6]

Output: true (as '3' is present in the Search array)

function searchAndFind (findArray, searchArray) {
  // your searching and finding here
  
  }

Reverse the given word.

Example: Zero -> oreZ

function reverseGear(word){
  //put your code here
  
}