Skip to content

Commit 5b4ed9d

Browse files
committed
task 3.js explained and completed
1 parent 7d0d970 commit 5b4ed9d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ console.log(last4Digits)
55
// The variable cardNumber is not a string and the slice() function works with strings or array
66

77
// Consider: Why does it give this error?
8-
// It gave that error brcause the slice() tool are not applicable to numbers.
9-
// I wasn't sure what error to expect because I'm just starting to learn the slice() tool
8+
// It gave that error "TypeError: cardNumber.slice is not a function" brcause the slice() function tool are not applicable to numbers.

0 commit comments

Comments
 (0)