Format for writing functions?

What is the difference of writing functions, what variant is more correct ?

export default {
 init: function() {

}
}


export default {
 init() {

}
}


export default {
 init: function(event) {
 var $target = $(event.target)
}
}


export default {
 init({ target }) {
 var $target = $(target)
}
}
March 20th 20 at 11:29
1 answer
March 20th 20 at 11:31
Solution
The only difference is syntactic sugar. In the second embodiment is applied comfortable new-fangled destructurization.

Read more here: https://learn.javascript.ru/destructuring

Find more questions by tags JavaScriptjQuery