DEV Community

Jan Küster
Jan Küster

Posted on


JavaScript code puzzle - can you call this function?

Consider the following function:

const fn = () => 'You win!'
Enter fullscreen mode Exit fullscreen mode

Try to call this function without using any of these characters: .()[]

The shortest line of code wins!

Top comments (2)

salmin profile image
Salmin Skenderovic


jankapunkt profile image
Jan Küster

Haha "You win!" 👍

DEV The only reason people scroll to the bottom... 
is because they want to read more.

Sign up for an account to bookmark, comment, and react to articles that interest you.