Advanced Palindrome Interview Question JavaScript
The palindrome interview question is popular question that is asked in a lot of junior and mid level developer interviews. Here are some possible solutions for palindromes with punctuation, numbers, and spaces with an explanation of what they are and which is the best. Day 1 of 365 Days of Coding
Flatten and Sort an Array of Arrays JavaScript
How to flatten, filter, and sort and array in JavaScript. The solution for a popular interview question flatten an array taken one step further to make it an array with only the unique values and have it sorted in numerical order.
Phone Number Formatter JavaScript
How to format a string or number to a US phone number in JavaScript. Solution for formatting an input to a US phone number format in JavaScript. Write a function that accepts a string of numbers or a number and converts it to a US phone number format.
How to Truncate a String in JavaScript
How to truncate a string in JavaScript. The challenge is, the function must return the truncated version of the given string up to the given limit followed by "..." if the result is shorter than the original. Return the same string if nothing was truncated. Day 6 of 365 Days of Coding!
How to Get a Sequence in Order With No Duplicate Consecutive Items
JavaScript solution for Implement the function uniqueInOrder which takes as argument a sequence and returns a list of items without any elements with the same value next to each other and preserving the original order of elements. Learn How to Get a Sequence in Order With No Duplicate Consecutive Items in JavaScript Day 12 of 365 Days of Coding