Draft

Where is my return ?

Description:

The purpose of this kata is to demonstrate a very basic mistake you may do in Javascript.
Some may say it is quirk but there is an explaination about it.
Fix the bug and you will see the explaination.

The function bug() is supposed to return a value, but it does not work as expected.
Your job is to fix it and make sure the proper value is returned.

Good luck

Fundamentals

More By Author:

Check out these other kata created by ben8p

Stats:

CreatedMar 30, 2017
Warriors Trained497
Total Skips16
Total Code Submissions697
Total Times Completed252
JavaScript Completions252
Total Stars3
% of votes with a positive feedback rating81% of 138
Total "Very Satisfied" Votes96
Total "Somewhat Satisfied" Votes32
Total "Not Satisfied" Votes10
Total Rank Assessments126
Average Assessed Rank
7 kyu
Highest Assessed Rank
2 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • ben8p Avatar
Ad