Practice for Exam II All functions below may make use of any string, array, or function methods, including those we may not have used in class. 1. Create a function "isPalindrome" that accepts a string as an argument. The function should return true if the string is a palindrome, and false otherwise (including if the parameter passed is not a string). ex: isPalindrome( 'hello' ) // returns false isPalindrome( 'tyhyt' ) // returns true isPalindrome( 575 ) // returns false 2. Create a function "nOccur" that accepts two argument: a string (with any number of any characters) and a string that is a single letter or (non-whitespace) character. The function should return the number of times the character appears in the string. ex: nOccur( 'hello', 'l' ) // returns 2 nOccur( 'hello', 'w' ) // returns 0 3. Create a function "toSet" that accepts an array as an argument. You may assume this is a 'flat' array, that contains only strings or numbers, not other arrays or functions. The function should return an array containing every item in the passed array, but without any repetition. The array contains do not need to be sorted, but can be. ex: toSet( [ 1, 5, 3, 5, 8, 2, 3, 7 ]) // returns [ 1, 2, 3, 5, 7, 8 ] toSet( [ 6, "hi", "hi", -6 ]) // returns [ 6, "hi", -6 ] 4. Create a function "largest" that accepts an array of numbers and returns the largest number in the array. ex: largest( [ 1, 5, 3, 5, 8, 2, 3, 7 ]) // returns 8 largest( [ 100, -1000, 500, -300, 700 ]) // returns 700 5. Create a function "cTime" that will be called by a setInterval timer every 1000 milliseconds. The function should update the innerHTML of an element with an ID of "displayTime" to show the current time (EST), including hours, minutes, and seconds.