Warning: The following algorithms may cause excessive eye strain, cognitive dissonance, or existential dread. Prolonged exposure may lead to permanent damage.

The Infinite Loop of Despair

This algorithm will recursively call itself until the universe collapses in upon itself.


			function infiniteLoop() {
				while (true) {
					console.log('I am stuck in an infinite loop');
					infiniteLoop();
				}
			}
		

The Recursive Function of Doom

This algorithm will eat all available system resources until your computer self-destructs.


			function recursiveFunction() {
				if (typeof arguments.callee === 'function') {
					return arguments.callee(arguments.callee);
				}
			}
			console.log(recursiveFunction());
		

More Complicated Algorithms