There was an error while loading. Please reload this page.
1 parent 2d3769c commit 428cd8aCopy full SHA for 428cd8a
1 file changed
Sprint-2/2-mandatory-errors/3.js
@@ -7,3 +7,5 @@ console.log(last4Digits);
7
// Then run the code and see what error it gives.
8
// Consider: Why does it give this error? Is this what I predicted? If not, what's different?
9
// Then try updating the expression last4Digits is assigned to, in order to get the correct value
10
+
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
0 commit comments