Skip to content

kharioki/Js_interview_challenges

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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

About

A few JS challenges that you may encounter in an interview.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published