馃殌 CYBER WEEK SALE: 50% OFF on JavaScript Fundamentals 馃挭

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 ....

August 15, 2020 路 1 min 路 Coderslang Master

Task #143 - Extract a number

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....

August 15, 2020 路 1 min 路 Coderslang Master

Task #144 - Capitalize Each Word

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...

August 15, 2020 路 1 min 路 Coderslang Master

Task #145 - Shorten by words

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 ....

August 15, 2020 路 1 min 路 Coderslang Master

Task #146 - Spam filter

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...

August 15, 2020 路 1 min 路 Coderslang Master

Task #147 - Task list

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)...

August 15, 2020 路 2 min 路 Coderslang Master

Task #150 - Divide By

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...

August 15, 2020 路 1 min 路 Coderslang Master

Task #151 - Short words filter

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....

August 15, 2020 路 1 min 路 Coderslang Master

Task #152 - Fix auth

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...

August 15, 2020 路 1 min 路 Coderslang Master

Task #153 - Analyze object keys

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...

August 15, 2020 路 1 min 路 Coderslang Master