Because it's in a loop. Multiplication, by definition, is summation of a number with itself, repeated several times.
It also works perfectly in the reverse case of interpretation.
Lol, taking advantage of JavaScript faults. I like it.
how?
best the best way
I don't know, it works this way and that for me
This comment is hidden because it contains spoiler information about the solution
exelente
bajarildi
Can someone explain how result + price is the same as result * price ?
As sl9site said, this code can fail when question mark is in the middle or at the beginning of the string
it worked because the tests was not written very carefully, otherwise, the question mark in the middle of the sentence would not give a positive result (the same with replace)
Loading collection data...
Because it's in a loop. Multiplication, by definition, is summation of a number with itself, repeated several times.
It also works perfectly in the reverse case of interpretation.
Lol, taking advantage of JavaScript faults. I like it.
how?
best the best way
I don't know, it works this way and that for me
This comment is hidden because it contains spoiler information about the solution
exelente
bajarildi
Can someone explain how result + price is the same as result * price ?
This comment is hidden because it contains spoiler information about the solution
As sl9site said, this code can fail when question mark is in the middle or at the beginning of the string
it worked because the tests was not written very carefully, otherwise, the question mark in the middle of the sentence would not give a positive result (the same with replace)