You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-2/3-mandatory-implement/2-cases.js
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,3 +14,10 @@
14
14
// You will need to come up with an appropriate name for the function
15
15
// Use the MDN string documentation to help you find a solution
16
16
// This might help https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase
17
+
18
+
functionmakeUpperCaseSnakeCase(str){
19
+
constresult=str.split(" ").join("_").toUpperCase();//take str, and turn it into an array and then turn it back into a string with underscores then upper case it.
0 commit comments