/javascript-cardio-session-1

some JavaScript coding challenges

Primary LanguageJavaScript

JavaScript Cardio [Session 1] - Reversals, FizzBuzz, MaxChar

YouTube video by Traversy Media

CHALLENGE 1: REVERSE A STRING

Return a reversed string

ex. reverseString('hello') returns olleh

CHALLENGE 2: VALIDATE A PALINDROME

Return true if palindrome

ex. isPalindrome('racecar') returns true

CHALLENGE 3: REVERSE AN INTEGER

Return an iteger in reverse

ex. reverseInt(521) returns 125

CHALLENGE 4: CAPITALIZE LETTERS

Return a string with the first letter of every word capitalized

ex. capitalizeLetters('this is javascript') returns 'This Is Javascript'

CHALLENGE 5: MAX CHARACTER

Return the character the is the most common in a string

ex. maxCharacter('javascript') returns 'a'

CHALLENGE 6: FIZZBUZZ

Write a function that prints all the numbers from 1 to 100. For multiples of 3 print Fizz instead of the number. For multiples of 5 print Buzz instead of the number. For numbers that are multiples of both 3 and 5 print Fizzbuzz