typescript javascript date code example Example: types date typescript const date: Date = new Date();