Show HN: JavaScript-Lua Polyglot

1 point by chirsz 7 months ago | 2 comments
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 7 months ago
    I don't get what this is...
    • chirsz 7 months ago
      A script that can be run as JavaScript or Lua. When run as Lua, it outputs "lua". When run as JavaScript, it outputs "js".