0

What is the difference between fun1 and fun2 when define or runtime ?

const o = {
    fun1(param) {
        console.log("fun 1: " + param);
        return true;
    },

    fun2: (param) => {
        console.log("fun 2: " + param);
        return true;
    }
}
  • Related: [What is the difference between class method vs. class field function vs. class field arrow function?](https://stackoverflow.com/q/56055658) – VLAZ Feb 11 '22 at 08:47

0 Answers0