Write a function called findMin.
The findMin function accepts one argument, which is a JavaScript array of mixed data types, and returns a number.
The findMin function is able to find and return the minimum numeric value in the array.
Do NOT use Math.max() or Math.min() in your solution.
2. Corrected_text: Write a function called halfNumberToArray.
The halfNumberToArray function accepts one argument, which is a number, and returns an array.
The halfNumberToArray function should take the number and divide it into two integers.
If the number is even, then both integers in the array are the same.
If the number is odd, then the first integer should be the higher integer and the second should be the lower. The array should never contain a float.
Do NOT use array access to add/remove in the array (DO NOT USE: array[0] = n).
HINT: Consider using Math.ceil() and Math.floor().
HINT: Declare a new array and/or use array methods discussed in lecture.
3. Corrected_text: Write a function called countCharacters.
The countCharacters function accepts two arguments, which are a character and a string, and returns a number.
The countCharacters function will find and count the number of times the character appears in the given string. The count should be case-insensitive.
4. Corrected_text: Write a function called findAndReplace.
The findAndReplace function accepts three arguments, which are all strings, and the function returns a string.
The findAndReplace function uses the first argument to find a character in the given string phrase and replace it with the character given as the second argument. It then returns the string phrase with the character properly replaced. The replace should be case-sensitive.