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!" 👍

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

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

Okay