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-3/1-key-errors/0.js
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,15 @@
4
4
// call the function capitalise with a string input
5
5
// interpret the error message and figure out why an error is occurring
6
6
7
-
functioncapitalise(str){
8
-
letstr=`${str[0].toUpperCase()}${str.slice(1)}`;
9
-
returnstr;
10
-
}
7
+
// function capitalise(str) {
8
+
// let str = `${str[0].toUpperCase()}${str.slice(1)}`;
9
+
// return str;
10
+
// }
11
11
12
12
// =============> write your explanation here
13
+
// The str has already been called so when its been set to the "let = str" it wont work as its already part of the function, so the name needs to change.
0 commit comments