Skip to content

Commit 925895f

Browse files
committed
Updated based on comment from volunteer
1 parent f6eafd0 commit 925895f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 3372770a4d6ae71b931968a6d6deb70dda58a065

Sprint-2/1-key-errors/0.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ function capitalise(str) {
1111
return str;
1212
}
1313

14-
// =============> I've given the variable a new name, newStr, to avoid redclaring the variable.
15-
// =============> function capitalise(str) {
16-
// let newStr = `${str[0].toUpperCase()}${str.slice(1)}`;
17-
// return newStr;
18-
//}
14+
// //function capitalise(str) {
15+
// return str[0].toUpperCase() + str.slice(1);
16+
// }
17+
// //}

0 commit comments

Comments
 (0)