A WILD BUG APPEARED! - WHALESHARES UP FOR GRABS!!

jepu(59)
Published in
#contest
Words
295
Reading
2 min
Listen
Play
9y

wild_bug.png

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 walnut1@walnut1 , seyiodus@seyiodus and codingdefined@codingdefined to edit their comments once. :)

DAY 1

If you don't know what this is then click here.

How to Join?

  1. Upvote this post.
  2. Satisfy the requirements being asked for and comment it down below (either list the bugs found or provide the correct block of code).
  3. Only one entry per account, Once you post it you can no longer edit it.
  4. Don't forget the random quote w/ author!

What do you get?

For this particular day you can get 10 Whaleshares courtesy of akrid@akrid 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!!!


jep_banner.png


Follow contests@contests for all kinds of Whaleshares contests!

A HUGE THANK YOU to officialfuzzy@officialfuzzy, blocktrades@blocktrades and akrid@akrid for making this contest possible. If you don't know what Whaleshares are or want to learn more about Whaleshares click this.

A WILD BUG APPEARED! - WHALESHARES UP FOR GRABS!! | Ecency