Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Mar 22, 2024
1 parent b7ab325 commit 0a4d564
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/diary/2024-03-22-interface-vs-class.md
Original file line number Diff line number Diff line change
@@ -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`.

0 comments on commit 0a4d564

Please sign in to comment.