Skip to content

penbuvt/no-statements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Programming without statements

This is an exercise in programming in JavaScript without statements.

Puzzles

  1. FizzBuzz
  2. Towers of Hanoi

Rules

  1. No statements allowed apart from what's in the template.
  2. No creating global variables, either implicitly or through the global object.
  3. No comma operator unless absolutely necessary.
  4. The containing function cannot be used for recursion.

Template

Replace undefined with the expression. f can be replaced with a descriptive name.

function f() {
  return undefined;
}

module.exports = {
  f,
};

License

MIT. See the LICENSE file for details.

About

Solving programming challenges without using statements

Resources

License

Stars

Watchers

Forks