Skip to main content
fixed up header
Source Link
Jo King
  • 47.5k
  • 5
  • 125
  • 186

JavaScript, 21:

JavaScript REPL, 21 bytes

(_=$=>`(_=${_})()`)()

It technically doesn't read its own file.

… kind of seems like 0 is also a quine for JavaScript the way this is evaluated, though.

JavaScript, 21:

(_=$=>`(_=${_})()`)()

It technically doesn't read its own file.

… kind of seems like 0 is also a quine for JavaScript the way this is evaluated, though.

JavaScript REPL, 21 bytes

(_=$=>`(_=${_})()`)()

It technically doesn't read its own file.

… kind of seems like 0 is also a quine for JavaScript the way this is evaluated, though.

modernized! but also, hmm.
Source Link
Ry-
  • 5.4k
  • 1
  • 24
  • 32

JavaScript, 21:

<script>alert(document.querySelector_=$=>`("script"_=${_}).outerHTML()</script>`)()

It technically doesn't read its own file.

I think… kind of seems like 0 is also a quine for JavaScript the way this is shorter and more “obfuscated”evaluated, though:.

(_=$=>alert('(_='+_+')()'))()

JavaScript:

<script>alert(document.querySelector("script").outerHTML)</script>

It technically doesn't read its own file.

I think this is shorter and more “obfuscated”, though:

(_=$=>alert('(_='+_+')()'))()

JavaScript, 21:

(_=$=>`(_=${_})()`)()

It technically doesn't read its own file.

… kind of seems like 0 is also a quine for JavaScript the way this is evaluated, though.

added 95 characters in body
Source Link
Ry-
  • 5.4k
  • 1
  • 24
  • 32

JavaScript:

<script>alert(document.querySelector("script").outerHTML)</script>

It technically doesn't read its own file.

I think this is shorter and more “obfuscated”, though:

(_=$=>alert('(_='+_+')()'))()

JavaScript:

<script>alert(document.querySelector("script").outerHTML)</script>

It technically doesn't read its own file.

JavaScript:

<script>alert(document.querySelector("script").outerHTML)</script>

It technically doesn't read its own file.

I think this is shorter and more “obfuscated”, though:

(_=$=>alert('(_='+_+')()'))()
WTh
Source Link
Ry-
  • 5.4k
  • 1
  • 24
  • 32
Loading
Source Link
Ry-
  • 5.4k
  • 1
  • 24
  • 32
Loading