File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ console.log(`The sum of 10 and 32 is ${sum(10, 32)}`);
1010
1111// =============> write your explanation here: firstly the process start accepting that it is a function and takes
1212// the parameter to hold the place then it go through the function but by the 5th line
13- // the function return and the value will come out undefined
13+ // the function return and the value will come out undefined,which means java script doesn't
14+ // have step to continue so it is returning with out a value.
1415// Finally, correct the code to fix the problem
1516// =============> write your new code here: function sum(a, b) {
1617// return a + b;
Original file line number Diff line number Diff line change 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 toCapitalizedSnakeCase ( str ) {
18+ function toUpperSnakeCase ( str ) {
1919 const toCapitalized = str . toUpperCase ( ) . replace ( / / g, "_" ) ;
2020 return toCapitalized ;
2121}
You can’t perform that action at this time.
0 commit comments