Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
I see what I was doing wrong. I was being stupid and mixed up the values.
Hard to know without actually seeing your code. State the language, paste your code using proper markdown and mark your post as having spoiler content.
This is for JS:
When I put in the prices listed as per the instructions I get errors saying another number was expected, but the final totalPrice passes.
So when I put in the numbers that are apparently expected from these errors and the test passes for the first 4 variables, but not the last totalPrice.
I feel like this isn't a fault with me...but is it?
Use spoiler flag and proper markdown when posting code.
In your first code,
count
is a string. You're not properly counting the n's in the string.In the regex it'll only match 15 n's one after the other, so it won't work either unless they are all next to each other.
This comment is hidden because it contains spoiler information about the solution
Aah! Thank you! I get it now.
That's not how you tests if a number is NaN, it won't work that way. Read this
This comment is hidden because it contains spoiler information about the solution