You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
zainabdnaya e712512bda docs(suffix): Adding the subject of exercice suffix for js piscine 1 year ago
..
README.md docs(suffix): Adding the subject of exercice suffix for js piscine 1 year ago

README.md

suffix

Instructions

Create function to move the first letter of each word to the end and add "er" to the end of each word while leaving punctuation marks untouched using regular expression

Expected function

function suffix(str) {
}

Usage

Here is a possible program to test your function:

const inputStr = "  this is a  test string   ";
const format = suffix(inputStr);
console.log(format);

and the output should be:

$ node index.js
elloHer, orldwer! hisTwer is Her a estwer.
$