Example 1: The Infinite Loop

				
					while(True) {
						print("I'm stuck in this loop")
					}
				
			

This code will print "I'm stuck in this loop" forever, or until the heat death of the universe.

See Another Example

Example 2: The Infinite Function Call

				
					function callMyself() {
						callMyself()
					}
					callMyself()
				
			

This code will print "callMyself()" until the stack is filled with recursion.

See Another Example

Example 3: The Memory Leaker

				
					list = []
					while(True) {
						list.append("I'm a memory leaker")
					}
				
			

This code will consume all your memory until the system crashes.

Back to Featured Bloopers