js trivia challenge!
you can write anything on line one, how are you getting the flag?

i originally wanted to make this into a ctf chall, but it's a bit too "win by knowing 1 obscure trick" to be good

@rebane2001 probably not how you intended it, but i'm happy with my approach

Object.defineProperty(window, "x", {get: () => {value = window.read ? {length: true} : undefined; window.read = true; return value;}});

(up to you if this fits "one line")