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