EDIT: As contestants seem to get confused with the question, I will change it to be clearer. NEW QUESTION: A BUG CAUSES THE FUNCTION TO FAIL. SPOT THE BUG/S AND PROVIDE THE EXPECTED OUTPUT AFTER THE BUG IS FIXED. With this changes I am allowing
,
and
to edit their comments once. :)
DAY 1
If you don't know what this is then click here.
How to Join?
- Upvote this post.
- Satisfy the requirements being asked for and comment it down below (either list the bugs found or provide the correct block of code).
- Only one entry per account, Once you post it you can no longer edit it.
- Don't forget the random quote w/ author!
What do you get?
For this particular day you can get 10 Whaleshares courtesy of for the first TWO who get the correct answer. Prizes vary per contest so watch out.
Happy Hunting and Good Luck!
Question: A bug causes the function to fail, spot the bug and provide the expected output.
NEW QUESTION: A BUG CAUSES THE FUNCTION TO FAIL. SPOT THE BUG/S AND PROVIDE THE EXPECTED OUTPUT AFTER THE BUG IS FIXED.
-- start --
function bug_hunting () {
for (var x=1; x <=5 ; x+=)
if (x === 0) { console.log(x + " is zero"); }
elseif (x % 2 === 0) { consle.log(x + " even");
else { console.log(x + " is odd"); }
}
}
bug_hunting();
-- end --
Contestants must also have or be willing to make a bitshares account to claim prizes, if you don't have one yet you can make on here
Come join us on Whaleshares Discord: https://discordapp.com/invite/qDUmmPC . Come chat with me!! :D
That's it for now, see you guys in the next one, keep your eyes open and Gotta Catch 'Em All!!!
Follow for all kinds of Whaleshares contests!
A HUGE THANK YOU to ,
and
for making this contest possible. If you don't know what Whaleshares are or want to learn more about Whaleshares click this.