Skip to content

Commit 22a0e1d

Browse files
authored
Update comment on type error for .slice() method
Clarified the error message explanation regarding the use of .slice() on numbers.
1 parent 7e294c8 commit 22a0e1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Sprint-2/2-mandatory-errors

‎Sprint-2/2-mandatory-errors/3.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ console.log(last4Digits);
88
// Consider: Why does it give this error? Is this what I predicted? If not, what's different?
99
// Then try updating the expression last4Digits is assigned to, in order to get the correct value
1010

11-
// The .slice() method works on strings, but numbers don't have a .slice() method and it will cause this error : cardNumber.slice is not a function
11+
// The .slice() method works on strings, but numbers don't have a .slice() method and it will cause this error : cardNumber.slice is not a function and I think it's kind of type error.

0 commit comments

Comments
 (0)