📅  最后修改于: 2022-03-11 14:48:16.080000             🧑  作者: Mango
in TS:
Both cannot be reassigned and effectively achieve the same thing.
However, because readonly is a typescript only thing, it only applies at compile time.
- use const for variables
- use readonly for properties