DEV Community

Jan Küster 🔥
Jan Küster 🔥

Posted on

2 2

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)

Collapse
 
salmin profile image
Salmin Skenderovic

fn``

Collapse
 
jankapunkt profile image
Jan Küster 🔥

Haha "You win!" 👍

Jetbrains image

Build Secure, Ship Fast

Discover best practices to secure CI/CD without slowing down your pipeline.

Read more

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay