There was an error while loading. Please reload this page.
1 parent 7b1645e commit 5bc8fbeCopy full SHA for 5bc8fbe
1 file changed
Sprint-2/2-mandatory-errors/3.js
@@ -9,4 +9,5 @@ const cardNumber = 4533787178994213;
9
// Then try updating the expression last4Digits is assigned to, in order to get the correct value
10
11
// I predicted the last four digits bit it has to be a string in order to use the method slice and that explain why it wasn't working
12
-const last4Digits = cardNumber.toString.slice(-4);
+const last4Digits = cardNumber.toString().slice(-4);
13
+console.log(last4Digits)
0 commit comments