From 4886d8965b1fc5b6ac19e1edbfa00743f7d65563 Mon Sep 17 00:00:00 2001 From: zainabdnaya Date: Sun, 8 Oct 2023 21:04:43 -0400 Subject: [PATCH] docs(wave): add subject of function wave (js piscine checkpoint) --- subjects/wave/README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 subjects/wave/README.md diff --git a/subjects/wave/README.md b/subjects/wave/README.md new file mode 100644 index 000000000..ad72c010b --- /dev/null +++ b/subjects/wave/README.md @@ -0,0 +1,34 @@ +## 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 + +```js +function wave(str) { +} +``` +### Usage + +Here is a possible program to test your function + +```js + wave("holla") + console.log("\n") + wave("welcome to 01") + console.log("\n") + wave("welcome13") + +``` +And its output : + +```console +$ node . +["Holla", "hOlla", "hoLla", "holLa", "hollA"] +wrong string format +["Welcome13","wElcome13","weLcome13","welCome13","welcOme13","welcoMe13","welcomE13"] +``` +