[Solved] What is “()=>{}” in js? [duplicate]

[ad_1]

=> is a shortcut for an anonymous function. So that’s just a function that does nothing. equivalent to:

function () { }

1

[ad_2]

solved What is “()=>{}” in js? [duplicate]