Quines

Basic Definition

A quine is a piece of code that prints out it's own source code,
generally to STDOUT. For the most part, blank pieces of code do work,
but aren't allowed.



Examples

A simple example would be the following in JavaScript:
function a(){return a.toString()+'a()'}a()
This has some problems -- in some interpreters, the single-quotes will be escaped.
Some interpreters don't support toString() on functions, either.
But, for the most part, it still works.



Try It

Code: function a(){return a.toString()+'a()'}a()



Output:



If you think I'm cheating, check the (commented!) code for yourself. (only 274 bytes)