I just tested out the code on codecademy's Javascript terminal and the result is 12. I then modified the initial value of qty to 5 and the result was 17.
Make sure you press on "Save and Submit" after you paste the code.
If you're still having problems, just post the steps that you've tried out and I'll try to replicate that.
Thanks for supporting this site. Hope it continues to be of help to others newbie coders.
Why isn't this code working?
ReplyDeleteHey there eeSmith,
ReplyDeleteI just tested out the code on codecademy's Javascript terminal and the result is 12. I then modified the initial value of qty to 5 and the result was 17.
Make sure you press on "Save and Submit" after you paste the code.
If you're still having problems, just post the steps that you've tried out and I'll try to replicate that.
Thanks for supporting this site. Hope it continues to be of help to others newbie coders.
Nathan