Use markdown formatting:
Expected: '1\n1*2\n1**3', instead got: '1\n1*2\n1**3\n'
Note: There is no newline in the end (after the pattern ends)
Expected: '1\n12\n1**3', instead got: '1\n12\n1**3\n'
You must return the result, not print it.
This comment is hidden because it contains spoiler information about the solution
That's a problem with your code, print the input to analyze why it fails. Read this: https://docs.codewars.com/training/troubleshooting/#print-input
Not a kata issue.
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>) at findOutlier (test.js:21:17) at Context.it (test.js:56:25)
As you can see from the message, you return a NaN, but the expected value is an integer (105313274). Are you sure you initialize your variables correctly? For example let myValue instead of let MyValue = 0.
NaN
let myValue
let MyValue = 0
Loading collection data...
Use markdown formatting:
Expected: '1\n12\n1**3', instead got: '1\n12\n1**3\n'
You must return the result, not print it.
This comment is hidden because it contains spoiler information about the solution
That's a problem with your code, print the input to analyze why it fails. Read this: https://docs.codewars.com/training/troubleshooting/#print-input
This comment is hidden because it contains spoiler information about the solution
Not a kata issue.
SyntaxError: Unexpected end of JSON input
This comment is hidden because it contains spoiler information about the solution
As you can see from the message, you return a
NaN
, but the expected value is an integer (105313274). Are you sure you initialize your variables correctly? For examplelet myValue
instead oflet MyValue = 0
.This comment is hidden because it contains spoiler information about the solution