Skip to content

Commit 6c23aa9

Browse files
Error test of string is defined
1 parent 8773e7f commit 6c23aa9

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
@@ -10,5 +10,5 @@ console.log (last4Digits);
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
13-
// 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.
13+
// Small s string is not function defined so that it showed the type ReferenceError.
14+
//When i put actual capital S String function defined and print the result(output).

0 commit comments

Comments
 (0)