Skip to content

Commit 1e2b5b7

Browse files
committed
Upper snake case(adding comments)
1 parent 73fd400 commit 1e2b5b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// This might help https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase
1717

1818
function snakeItUp(name) {
19-
const upperCase = name.toUpperCase();
20-
return upperCase.replaceAll(" ", "_");
19+
const upperCase = name.toUpperCase(); // Convert the string to uppercase
20+
return upperCase.replaceAll(" ", "_"); // Replace all spaces with underscores
2121
}
2222
console.log(snakeItUp("fares bakhet is my name"));

0 commit comments

Comments
 (0)