Skip to content

Commit 0dcdd7f

Browse files
committed
Add comment about SyntaxError in 0.js
1 parent 667b02a commit 0dcdd7f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • Sprint-3/1-key-errors

‎Sprint-3/1-key-errors/0.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
// call the function capitalise with a string input
77
// interpret the error message and figure out why an error is occurring
8+
// Error message interpreted ====> The error message simply means the name 'str' was declared twice in the same scope
89

910
function capitalise(str) {
1011
let str = `${str[0].toUpperCase()}${str.slice(1)}`;

0 commit comments

Comments
 (0)