Javascript colon expression how works?

Viewed 45

image

I found something weird phenomenon in JS. I tested it on Node.js and chrome console.

a:3 works, and return 3, but (a:3) throws error.

What is this expression and how it works?

0 Answers
Related