Last active
May 19, 2026 19:34
-
-
Save EdamAme-x/9aad9d6a95fba92a4d42cadd361138c8 to your computer and use it in GitHub Desktop.
zenn-hukashi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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