3 ms·
Show HN: JavaScript-Lua Polyglot
I tried to search but not found how to write JavaScript-Lua polyglot, so I do it by myself.
If you know polyglot for other languages, please share them.
- ghjfrdghibt 2y agoI don't get what this is...
- chirsz 2y agoA script that can be run as JavaScript or Lua. When run as Lua, it outputs "lua". When run as JavaScript, it outputs "js".