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
Copy file name to clipboardExpand all lines: Sprint-1/2-mandatory-errors/answers.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,13 @@
29
29
- Error shown:
30
30
- Why it happens:
31
31
- MDN link (optional):
32
+
### 3.js
33
+
34
+
- Error shown: `TypeError: cardNumber.slice is not a function`
35
+
- Why it happens: The variable `cardNumber` is a number, and numbers do not have the `slice()` method. The `slice()` method is only available on strings and arrays.
36
+
- Concept: Methods depend on data types in JavaScript.
0 commit comments