DEV Community

 Rahul Gupta
Rahul Gupta

Posted on

1 1

Unary function - Javascript

Unary function is a function that accepts exactly one argument. It stands for a single argument accepted by a function.

`const unaryFunction = (a) => console.log(a + 100);

unaryFunction(10); `

Top comments (0)

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay