Comment

Comment by askonomm

I didn't know, but apparently you can execute a function in JS without parentheses using upticks (`), e.g:

  functionName`param`
and whatever is inside of the upticks get sent to the function as an array. It's also what Bun is doing with it's $ (dollar sign) function for executing shell commands. There's so much weird syntax magic in JS.
parent askonomm 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton