Skip to content

Commit 1b215b8

Browse files
committed
upper case and replace method
1 parent 75f7994 commit 1b215b8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
// Implement a function that:
77

8+
function upperSnakeCase(srt){
9+
return srt.toUpperCase().replaceAll(" ", "_")
10+
}
11+
console.log(upperSnakeCase("hello there"))
12+
813
// Given a string input like "hello there"
914
// When we call this function with the input string
1015
// it returns the string in UPPER_SNAKE_CASE, so "HELLO_THERE"

0 commit comments

Comments
 (0)