Skip to content

Commit 8a05fa3

Browse files
committed
Applied proper naming conventions to function and variables.
1 parent 09ae242 commit 8a05fa3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +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

18-
function UPPER_SNAKE_CASE(str) {
19-
let snake_case = str.replaceAll(" ", "_");
20-
return snake_case.toUpperCase()
18+
function convertToUpperSnakeCase(str) {
19+
let snakeCase = str.replaceAll(" ", "_");
20+
return snakeCase.toUpperCase()
2121
}
2222

23-
console.log(UPPER_SNAKE_CASE("have you ever had a krispy kreme"))
23+
console.log(convertToUpperSnakeCase("have you ever had a krispy kreme"))

0 commit comments

Comments
 (0)