Skip to content

Commit 9fbf280

Browse files
fixing the cardNumber problem.
1 parent 1f147eb commit 9fbf280

File tree

1 file changed

+2
-2
lines changed
  • Sprint-1/2-mandatory-errors

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const cardNumber = 4533787178994213;
2-
const last4Digits = Number(cardNumber.toString().slice(-4));
1+
const cardNumber = 4533787178990001;
2+
const last4Digits = cardNumber.toString().slice(-4);
33
console.log(last4Digits);
44
console.log(typeof last4Digits);
55

0 commit comments

Comments
 (0)