I'm new to javascript, and I saw code like this.
<button onclick="this.onClickDoSmth">Click me</button>
onClickDoSmth = () => {
let a = this.clicked();
a();
}
clicked = () => {
console.log("test");
}
What's the difference of replacing the expression for "a" to
onClickDoSmth = () => {
this.clicked();
}