8 kyu
Fix the Bugs (Syntax) - My First Kata
5,987 of 10,705donaldsebleung
Description:
Fix the Bugs (Syntax) - My First Kata
Overview
Hello, this is my first Kata so forgive me if it is of poor quality.
In this Kata you should fix/create a program that return
s the following values:
false/False
if either a or b (or both) are not numbersa % b
plusb % a
if both arguments are numbers
You may assume the following:
- If
a
andb
are both numbers, neither ofa
orb
will be0
.
Language-Specific Instructions
Javascript and PHP
In this Kata you should try to fix all the syntax errors found in the code.
Once you think all the bugs are fixed run the code to see if it works. A correct solution should return the values specified in the overview.
Extension: Once you have fixed all the syntax errors present in the code (basic requirement), you may attempt to optimise the code or try a different approach by coding it from scratch.
Debugging
Similar Kata:
Stats:
Created | Feb 1, 2016 |
Published | Feb 1, 2016 |
Warriors Trained | 14147 |
Total Skips | 153 |
Total Code Submissions | 37957 |
Total Times Completed | 10705 |
JavaScript Completions | 5987 |
Ruby Completions | 626 |
Python Completions | 3610 |
PHP Completions | 803 |
CoffeeScript Completions | 25 |
Total Stars | 75 |
% of votes with a positive feedback rating | 89% of 1829 |
Total "Very Satisfied" Votes | 1497 |
Total "Somewhat Satisfied" Votes | 263 |
Total "Not Satisfied" Votes | 69 |