Task #142 - String shortening
Implement the function shorten(s, n). It should accept a string, and a number. It should return the new string that consists of maximum n characters of the original string. If you have to cut off some chars, place ....
Implement the function shorten(s, n). It should accept a string, and a number. It should return the new string that consists of maximum n characters of the original string. If you have to cut off some chars, place ....
Implement the function extractNumber(s). It should accept a string and extract a number from it. It鈥檚 guaranteed that there will be a single number in the string. Examples: $59.99 -> 59....
Implement the function capitalizeEachWord(s). It should accept a string, turn the first letter of each word to uppercase and return the result. This task is part of the Full-Stack JavaScript Course...
Implement the function shortenByWords(s, n). It should accept a string, and a number. It should return the new string that consists of maximum n characters of the original string. If you have to cut off some chars, place ....
Implement the function checkSpam(text, spamKeywords). It should return true if text contains any of the spamKeywords, otherwise - false. The comparison should be case insensitive. This task is part of the Full-Stack JavaScript Course...
Implement the function formatTaskList. It should transform each task object into a string by placing a green checkmark (u2705) in front of the title if the task is DONE Otherwise, use a red cross (u274c)...
Implement the function divideBy(divisor). It should accept a divisor and return a function that takes the number n, divides it by the divisor and returns the the result. This task is part of the Full-Stack JavaScript Course...
Implement the function isShortWord(s). It should take a string and return true if the string meets both of the following conditions: The length of the string is less than 10 characters....
Fix the code. Access should only be given to the users with the admin role. Make sure that the user name is logged to the screen. This task is part of the Full-Stack JavaScript Course...
Implement the function isKeyPresent(obj, key) which checks if the object has a certain field This task is part of the Full-Stack JavaScript Course If you have any issues with it, you can ask for community help below the post...