Skip to content

Commit 62fa645

Browse files
Reference error is not fixed
1 parent e211f67 commit 62fa645

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ console.log (last4Digits);
66
// However, the code isn't working
77
// Before running the code, make and explain a prediction about why the code won't work
88
// Then run the code and see what error it gives.
9-
// Consider: Why does it give this error? Is this what I predicted? If not, what's different?
9+
// Consider: Why does it give this error? Is this what I predicted? If not, what's different?
1010
// Then try updating the expression last4Digits is assigned to, in order to get the correct value
1111
//Card number is a number not a string so it will throw typeerror.
1212
// i did not think slice method can not run in number method so that i change it in string
1313
// when i put capital letter ReferenceError: string is not defined so that nothing last4Digits not showed
14-
//in the terminal String is the function but string is the normal text.
14+
//in the terminal String is the function but string is the normal text.

0 commit comments

Comments
 (0)