Js interview challenges
Some challenges included
1. Reverse a string. Return a string in reverse, e.g. reverseString('hello') === 'olleh'.
2. Validate a palindrome. Return true if palindrome, e.g. isPalindrome('racecar') === true, isPalindrome('hello') === false.
3. Reverse an integer. Return an integer in reverse, e.g. reverseInt(521) === 125.
4. Capitalized. Return a string with the first letter of every word capitalized, e.g. capitalizeLetters('i love javascript') === 'I Love Javascript'
5. Max-characters. Return the character that is most common in a string, e.g. maxCharacter('javascript') == 'a'
6. FizzBuzz. Write a program that prints all the numbers from 1 to 100. For multiples of 3, instead of the number, print "Fizz", for multiples of 5 print "Buzz". For numbers which are multiples of both 3 and 5, print "FizzBuzz".
7. Longest word. Return the longest word of a string.
8. Array chunking. Split an array into chunked arrays of a specific length.
9. Flatten array. Take an array of arrays and flatten to a single array.
10. Anagram. Return true if anagram and false if not.
11. Letter changes. Change every letter of the string to the one that follows it and capitalize the vowels