Skip to content

Instantly share code, notes, and snippets.

@rbren
Created February 13, 2023 01:24
Show Gist options
  • Save rbren/aec12e617584ad50bf885f23fb5d8e08 to your computer and use it in GitHub Desktop.
Save rbren/aec12e617584ad50bf885f23fb5d8e08 to your computer and use it in GitHub Desktop.
JavaScript Quine
var tick = "`"
var code =
`
console.log('var tick = "' + tick + '"');
console.log('var code = ');
console.log(tick);
console.log(code.trim());
console.log(tick);
console.log(code.trim());
`
console.log('var tick = "' + tick + '"');
console.log('var code = ');
console.log(tick);
console.log(code.trim());
console.log(tick);
console.log(code.trim());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment