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