Sequence without Loops

Sequence without Loops

Presented at Modern Web UI meetup: http://www.meetup.com/modernwebui/events/220294896/

Can we generate Fibonacci sequences, compute factorials, and discover prime numbers without using explicit loops at all? Of course! All we need is to (ab)use the built-in JavaScript Array object.

0284b8950e0f4a57bcc092d4dbb98d97?s=128

Ariya Hidayat

May 13, 2015
Tweet