Skip to content

Instantly share code, notes, and snippets.

@EdamAme-x
Last active May 19, 2026 19:34
Show Gist options
  • Select an option

  • Save EdamAme-x/9aad9d6a95fba92a4d42cadd361138c8 to your computer and use it in GitHub Desktop.

Select an option

Save EdamAme-x/9aad9d6a95fba92a4d42cadd361138c8 to your computer and use it in GitHub Desktop.
zenn-hukashi
// 1 is where ?? real invisible
// ----------------------------------------
// 2. setTimeout / setInterval
// ----------------------------------------
// setTimeout
setTimeout('console.log("edamame is good!");', 1);
// 1ms "edamame is good!"
// setInterval
// ----------------------------------------
// 3. .constructor
// ----------------------------------------
// constructor
({}).constructor
// f Object() { [native code] }
// constructor= Function
( => _).constructor('console.log("edamame is good!");')();
// "edamame is good!"
// constructorFunction
const user = { isAdmin: true };
user.isAdmin.constructor
// f Boolean() { [native code] }
user.isAdmin.constructor.constructor
// f Function() { [native code] }
//
user.isAdmin.constructor.constructor('console.log("edamame is good!");')();
// "edamame is good!"
// ----------------------------------------
// 4. dynamic import
// ----------------------------------------
// JavaScriptData URI
import("data:text/javascript,console.log('edamame is good!')");
// Promise {<pending>}
// "edamame is good!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment