An algorithm implemented in Javascript that prints spiral pattern like that of one snail.