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
{{ message }}
Repository navigation
Commit 0921c64
Browse filesBrowse the repository at this point in the historyBrowse files
// =============>The function will return capital S because the first letter of the str variable was capitalised with the toUpperCase method
3
3
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
+
// The str identifier has already been declared in the function parameter and cannot be declared anywhere else inside the function as a variable
7
+
8
+
// =============> write your explanation here
9
+
// When a parameter is declared in a function, it causes an Error if it is declared inside the function as a variable, either you change the name used for the instructions or remove let
0 commit comments