Skip to content

Commit d38452c

Browse files
committed
fixing code using mentor feed back
1 parent d7a7034 commit d38452c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Sprint-2/2-mandatory-debug/1.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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
}

0 commit comments

Comments
 (0)