diff --git a/docs/diary/2024-03-22-interface-vs-class.md b/docs/diary/2024-03-22-interface-vs-class.md new file mode 100644 index 00000000..23149618 --- /dev/null +++ b/docs/diary/2024-03-22-interface-vs-class.md @@ -0,0 +1,10 @@ +--- +title: Interface v.s. Class +author: Xie Yuheng +date: 2024-03-22 +--- + +We should use the keyword `interface` instead of `class`. + +Because, for example, to use OOP in JS, +all we need are `interface` and `function`.