Skip to content

Commit a57ec22

Browse files
authored
Add comment about uncaught type error for empty string
Added a comment explaining potential uncaught type error.
1 parent b31a586 commit a57ec22

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • Sprint-2/1-key-errors

Sprint-2/1-key-errors/0.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ function capitalise(str) {
1111

1212
// =============> write your explanation here
1313
// =============> write your new code here
14+
// [ChunYanWong]The uncaught type error will occur if the string is empty

0 commit comments

Comments
 (0)