We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f3d6cf commit a976af7Copy full SHA for a976af7
Sprint-2/1-key-errors/0.js
@@ -5,9 +5,17 @@
5
// interpret the error message and figure out why an error is occurring
6
7
function capitalise(str) {
8
- let str = `${str[0].toUpperCase()}${str.slice(1)}`;
+ var str = `${str[0].toUpperCase()}${str.slice(1)}`;
9
return str;
10
}
11
+capitalise(hello);
12
13
// =============> write your explanation here
14
+//cant overwrite the str variable with a new parameter, because it is let instead of var
15
// =============> write your new code here
16
+
17
+function capitalise(str) {
18
19
+ return str;
20
+}
21
+capitalise("hello"");
0 commit comments