Ad
  • Custom User Avatar

    I really think that the folk who created this great excercise should just give it a look of how it is specified.
    rather than making a person creates a ternary operator or if else function, it should also specify the simple fact, that since the buyer buys a bigger amount of hotdogs, then, buyer will receive a small reduction on price, whatsoever, the return should always be the cent multiplied by the times the buyer is buying a hotdog.

  • Custom User Avatar

    ahhh I took this piece of code thinking it would not work, but then doing the debuggin, found this solution amazing! Not using any prototype and very fancy code to show off your comprehension skills. I am glad I did scroll down.

  • Custom User Avatar

    HAHAHAHAHAHAH great!

  • Custom User Avatar

    Ah, I just discover what I was failing for... Thank you!

    I ended up reading and reading the question again, where I discover that basically, all the answer was needed to be on the same string, then I saw what is just below of every test, and I understood, that basically, what that text does, if give us a clue of what the outcome of our programm should be like, so I re enter solution, and printed well, then I have it right, it is correct now.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution