Skip to content

Commit 336821f

Browse files
committed
Fix variable declaration in upperCase function
1 parent af33811 commit 336821f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
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 upperCase(str) {
19-
returnUpperCase = str.toUpperCase().replaceAll(" ", "_")
19+
const returnUpperCase = str.toUpperCase().replaceAll(" ", "_")
2020
return returnUpperCase
2121
}
2222
console.log(upperCase("what is your name mr man? "))

0 commit comments

Comments
 (0)