There was an error while loading. Please reload this page.
1 parent 027513b commit 2795463Copy full SHA for 2795463
1 file changed
Sprint-3/3-mandatory-implement/2-cases.js
@@ -16,11 +16,11 @@
16
// This might help https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase
17
18
// define function
19
-function stringToUpperCase(str) {
+function stringToUpperCaseSnake(str) {
20
//store string in upper snake case (calculation wont change store in const)
21
- const stringToUpperCaseResult = str.toUpperCase().replaceAll(" ", "_");
+ const stringToUpperCaseSnakeResult = str.toUpperCase().replaceAll(" ", "_");
22
// return result
23
- return stringToUpperCaseResult;
+ return stringToUpperCaseSnakeResult;
24
}
25
// call function
26
-console.log(stringToUpperCase("welcome to cyf"));
+console.log(stringToUpperCaseSnake("welcome to cyf"));
0 commit comments