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.
Your code assumes the biggest length difference is
b1
having the greatest length andb2
having the shortest length but you do not consider the vice-versa case'Looks like you've solved it'
duplicate question
@Sri_SriPod Thanks so much for the recommendation. I was able to complete the last test only because of that.
I do not quite understand the relationship between price, discount, holiday_cost and the return value. Could someone explain to me? Thanks.
That makes sense. Thank you!
charAt
will fail if name is''
orundefined
.This comment is hidden because it contains spoiler information about the solution
Sorry! I'm using JavaScript!
TypeError: Cannot read property 'charAt' of undefined
at hello
at /home/codewarrior/index.js:16:20
at /home/codewarrior/index.js:18:5
at Object.handleError
It's javascript, and it should work in both cases, please provide an example of your code that doesn't work marking your post as having spoiler content.
Hi Jenna,
Please specify the programming language in your messages. And if possible try to paste the error message here. Thank you.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I answered a post like this above, too. Check https://stackabuse.com/default-arguments-in-python-functions/ website out and scroll to "Functions with default arguments". The key here is to use optional or default arguments...
Hope this helps. 😀
Loading more items...