This is an exercise in programming in JavaScript without statements.
- FizzBuzz
- Towers of Hanoi
- No statements allowed apart from what's in the template.
- No creating global variables, either implicitly or through the global object.
- No comma operator unless absolutely necessary.
- The containing function cannot be used for recursion.
Replace undefined
with the expression.
f
can be replaced with a descriptive name.
function f() {
return undefined;
}
module.exports = {
f,
};
MIT. See the LICENSE file for details.