Express app in 1 line of code
RohilPatel (765)

Express app in 1 line of code

When coding, you usually see people make express apps in like 4 or 5 lines of code, for neatness. However, nobody seems to say that you can do this in 1 line of code, even to display HTML, in which you would just replace the .get with .use. I just thought this would be a cool way to code, and it just so happened to work.

Please Upvote if you think this is cool

Also eat a cookie if you think this is dumb lol.


You are viewing a single comment. View All
Highwayman (1251)

@RohilPatel I find the fact that we can do this type of thing satisfying, but no I didn’t find this repl satisfying. Sorry.