WTF.js
summary
Shows how arbitrary JavaScript programs can be built and run in the browser console using only six characters by abusing type coercion and object primitives (e.g., turning expressions like []()+! into numbers/strings), extracting letters from method names, and assembling code with the Function constructor to create and invoke functions at runtime without using eval.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:276-char program discovery
- 2:11Implicit type conversion
- 3:17Plus operator types
- 5:04Adding objects arrays
- 6:29Code blocks unary operator
- 7:32Building numbers 6 chars
- 9:36String representation
- 10:37Accessing methods ASCII
- 12:00Arbitrary code evaluation
- 14:07Conclusion
- 14:53Q&A








