=()=> - what is that?

I’m newbie. On other website I saw it “…onclick=()=>{window…” could you explain what =()=> means? Thanks!

that’s assigning (=) an arrow function (() => {})

2 Likes

Thanks Dormilich! Have not heard about arrow functions

They were introduced with ES6 / ECMAScript 2015.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.