Skip to content

Commit a718a88

Browse files
committed
refactored my function
1 parent 34de47b commit a718a88

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Sprint-3/3-mandatory-implement/2-cases.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
// define function
1919
function stringToUpperCase(str) {
20-
//store string in upper snake case
21-
let stringToUpperCaseResult = str.toUpperCase().replaceAll(" ", "_");
20+
//store string in upper snake case (calculation wont change store in const)
21+
const stringToUpperCaseResult = str.toUpperCase().replaceAll(" ", "_");
2222
// return result
2323
return stringToUpperCaseResult;
2424
}

0 commit comments

Comments
 (0)