Difference between class(java) and closure(javascript)?

后端 未结 5 2079
别那么骄傲
别那么骄傲 2020-12-15 13:14

I don\'t understand how closure is more powerful than class. It looks like I can achieve the same behavior of closure using class. Any help would be appreciated

5条回答
  •  误落风尘
    2020-12-15 13:54

    I'm not sure what led you to this question, but something you've been told or something you read has severely misled you.

    Ignoring language altogether, a closure and a class are completely unrelated structures/conventions in programming.

提交回复
热议问题