Settings

Theme

Show HN: JavaScript-Lua Polyglot

gist.github.com

1 points by chirsz a year ago · 2 comments · 1 min read

Reader

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 a year ago

I don't get what this is...

  • chirszOP a year 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".

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection