There was an error while loading. Please reload this page.
1 parent 3c8783e commit 0b6a121Copy full SHA for 0b6a121
1 file changed
Sprint-3/3-mandatory-implement/2-cases.js
@@ -14,3 +14,10 @@
14
// You will need to come up with an appropriate name for the function
15
// Use the MDN string documentation to help you find a solution
16
// This might help https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase
17
+
18
+function UPPER_SNAKE_CASE(str) {
19
+ let snake_case = str.replaceAll(" ", "_");
20
+ return snake_case.toUpperCase()
21
+}
22
23
+console.log(UPPER_SNAKE_CASE("have you ever had a krispy kreme"))
0 commit comments