Jenis Tipe TypeScript
const date: Date = new Date();
Restu Wahyu Saputra
const date: Date = new Date();
const d: Date = new Date(); // but the type can also be inferred from "new Date()" already