The following javascript code will evaluate to itself:
(function f () {return `(${f})()`})()
That is, if x = (function f () {return `(${f})()`;})()
, then x === eval(x)
is true.
Code snippets like this are known as quines. I first learnt about quines in a video by the AI researcher and youtuber Lex Fridman.