Skip to content

Commit aea31d0

Browse files
author
russom
committed
Update code ti number from string.
1 parent cdbe5c4 commit aea31d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const cardNumber = "4533787178994213";
1+
const cardNumber = 4533787178994213;
22
const last4Digits = String(Number(cardNumber.slice(-4)));
33

44
console.log(last4Digits);

0 commit comments

Comments
 (0)