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.
In overview - result should be:
"Original_Balance:_1000.00
125_Market_125.45_Balance_874.55
126_Hardware_34.95_Balance_839.60
127_Video_7.45_Balance_832.15
128_Book_14.32_Balance_817.83
129_Gasoline_16.10_Balance_801.73
Total_expense__198.27
Average_expense__39.65"
In test result expected:
Original Balance: 1000.00\r
125 Market 125.45 Balance 874.55\r
126 Hardware 34.95 Balance 839.60\r
127 Video 7.45 Balance 832.15\r
128 Book 14.32 Balance 817.83\r
129 Gasoline 16.10 Balance 801.73\r
Total expense 198.27\r
Average expense 39.65
So, how is it?
Because replaceAll requires Node v15+. Please mark your post as having spoiler content next time.
This comment is hidden because it contains spoiler information about the solution
That's because the input is already a negative number and
--12525220.3325
can't be converted to a number.just open console in ur browser or jsconsole site and try. It will be working.
ps change simple quotes to back quotes. this editor dont display it.
If you don't provide the code that's failing, how do you expect someone else to guess what it was? And it was probably wrong:
I wrote:
My console shows me that +’-${12525220.3325}’ is equal to -12525220.3325 But tests shows NaN
wait, what? you mean that we count the time that 3m customer waits for his coffee AND the time that 3m customer waits with the 2m customer for her coffee??? in that case why don't we count the time that the 4m customers waits with the 3m customer?
You say nothing about what should be fixed, there is nothing to fix, if your code didn't pass it was not correct, it's that easy.
Because I passed it with another variant.
The kata is ok, and you passed it. What are you saying?
This comment is hidden because it contains spoiler information about the solution
True, my bad. Won't happen again.
has been approved
Study maths for 3 hours, code for 3 minutes. No, thanks.
Loading more items...