mirror of https://github.com/01-edu/public.git
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
4886d8965b
|
1 year ago | |
---|---|---|
.. | ||
README.md | 1 year ago |
README.md
wave
Instructions
Create a function that turns a string into a Mexican Wave. You will be passed a string and you must return that string in an array where an uppercase letter is a person standing up.
Expected function
function wave(str) {
}
Usage
Here is a possible program to test your function
wave("holla")
console.log("\n")
wave("welcome to 01")
console.log("\n")
wave("welcome13")
And its output :
$ node .
["Holla", "hOlla", "hoLla", "holLa", "hollA"]
wrong string format
["Welcome13","wElcome13","weLcome13","welCome13","welcOme13","welcoMe13","welcomE13"]