There was an error while loading. Please reload this page.
1 parent 936de83 commit 55fa5e7Copy full SHA for 55fa5e7
1 file changed
Sprint-2/2-mandatory-errors/3.js
@@ -1,9 +1,8 @@
1
// The last4Digits variable should store the last 4 digits of cardNumber
2
// However, the code isn't working
3
+// Before running the code, make and explain a prediction about why the code won't work
4
5
//Prediction: The code won't work because cardNumber is stored as a Number and not a string, this is because '.slice()' is a string method
-
6
-// Before running the code, make and explain a prediction about why the code won't work
7
// Numbers in JavaScript don't work with '.slice()'
8
9
0 commit comments