Function reverse_string() takes a string named _word_ as a parameter. The function should return _word_ in reverse.
-
Updated
Mar 22, 2021 - JavaScript
Function reverse_string() takes a string named _word_ as a parameter. The function should return _word_ in reverse.
check_for_name() takes two strings as parameters named _sentence_ and _name_. The function should return _True_ if _name_ appears in sentence in all lowercase letters, all uppercase letters, or with any mix of uppercase and lowercase letters. The function should return _False_ otherwise.
add_exclamation() takes one parameter named _word_. This function should add exclamation points to the end of _word_ until word is 20 characters long. If _word_ is already at least 20 characters long, just return _word_.
function every_other_letter() takes a string named _word_ as a parameter. The function returns a string containing every other letter in word.
unique_english_letters takes a string word as a parameter. The function should return the total number of unique letters in the string. Uppercase and lowercase letters should be counted as different letters. The list of every uppercase and lower case letter in the English alphabet is in a string "letters".
substring_between_letters() takes a string named _word_, a single character named _start_, and another character named _end_. This function should return the substring between the first occurrence of _start_ and _end_ in word. If _start_ or _end_ are not in _word_, the function should return _word_. For example, substring_between_letters("apple"…
These functions take a string named _word_ and a single or multi character named _x_ as parameters. The function should return the number of times _x_ appears in _word_.
Function takes a string named _sentence_ and an integer named _x_ as parameters. It returns _True_ if every word in sentence has a length greater than or equal to _x_.
function make_spoonerism() takes two strings as parameters named _word1_ and _word2_. Spoonerism switch the first letters of each word and returns the two new words as a single string separated by a space.
Add a description, image, and links to the string-challenges-codecademy topic page so that developers can more easily learn about it.
To associate your repository with the string-challenges-codecademy topic, visit your repo's landing page and select "manage topics."