Skip to content

Commit e4fae36

Browse files
authored
Modify toUpperCase function to replace spaces with underscores
1 parent 3eb628c commit e4fae36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

1818
function toUpperCase(words) {
19-
return words.toUpperCase();
19+
return words.split(" ").join("_").toUpperCase();
2020
}

0 commit comments

Comments
 (0)