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 876db1c8f1 docs(vowelSing): Adding the subject of exercice vowelSign for js piscine 1 year ago
..
README.md docs(vowelSing): Adding the subject of exercice vowelSign for js piscine 1 year ago

README.md

vowelSign

Instructions

Create function named "VowelSign" that takes a string as its input parameter.

The function is expected to produce a modified string as its output, where in each uppercase vowel in the input string is replaced with a "+" symbol, and each lowercase vowel is substituted with a "-" symbol.

It is required to implement this functionality by defining a regular expression pattern for identifying vowels, which should be stored in a variable named "vowels."

Expected function

function VowelSign(inputString) {
}

Usage

Here is a possible program to test your function


const inputStr = "This Is a Sample StrIng";
const result = VowelSign(inputStr);
console.log(result);

And its output :

$ node index.js
"Th-s +s a S-mpl- Str+ng