Skip to content

Commit b3b4efb

Browse files
committed
adding underscore
1 parent 587bb75 commit b3b4efb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
// Use the MDN string documentation to help you find a solution
1616
// This might help https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase
1717
function convertToUpperSnakeCase(inputString) {
18-
return inputString.toUpperCase();
18+
const captializedInputString = inputString.toUpperCase();
19+
const withUnderScore = captializedInputString.split(" ").join("_");
20+
return withUnderScore;
1921
}
2022

2123
console.log(convertToUpperSnakeCase("Hello there"));

0 commit comments

Comments
 (0)