Skip to content

Commit c12947f

Browse files
committed
modified answer of 3-mandatory-implement 2-cases.js
1 parent 6def982 commit c12947f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

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

1818
function upperSnakeCase(val) {
1919
const upperCase = val.toUpperCase();
20-
return upperCase.replace(" ", "_");
20+
return upperCase.replaceAll(" ", "_");
2121
}
2222

2323
console.log(upperSnakeCase("hello there"));
24+
console.log(upperSnakeCase("lord of the rings"));

0 commit comments

Comments
 (0)