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

Task #138 - Power it up

Implement a function pow in helper.js that takes two numbers and returns the first number raised to the power of second number. Examples: pow(2, 2) // 4 pow(2, 0) // 1...

August 15, 2020 路 1 min 路 Coderslang Master

Task #140 - Escape characters

Fix the constants to make sure that correct messages are logged to the screen. stringWithNewline should be printed on a single line and display \n on the screen inside of the stringWithQuotes each word should be wrapped in single quotes stringWithEmojis should display emojis properly in the beginning and the end This task is part of the Full-Stack JavaScript Course...

August 15, 2020 路 1 min 路 Coderslang Master

Task #141 - Capitalize first word

Implement the function capitalizeFirstWord(s). It should accept a string, turn the first letter of its first 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 #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