DEV Community

 Rahul Gupta
Rahul Gupta

Posted on

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)