There was an error while loading. Please reload this page.
1 parent 09bea6c commit c640146Copy full SHA for c640146
1 file changed
Sprint-3/1-key-errors/0.js
@@ -8,10 +8,6 @@ and will append the sliced string from index 1 which is the second letter
8
9
// call the function capitalise with a string input
10
// interpret the error message and figure out why an error is occurring
11
-
12
-/* syntax Error :identifier the variabel has already been declared.
13
-As we can see the str variable has already been declared in the prameter of the function instead we just return the value */
14
15
// function capitalise(str) {
16
// let str = `${str[0].toUpperCase()}${str.slice(1)}`;
17
// return str;
0 commit comments