mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
228 B
TypeScript
13 lines
228 B
TypeScript
// @strict: true
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @noEmit: true
|
|
// @filename: t.js
|
|
|
|
const is_morning = new Date().getHours() < 12;
|
|
|
|
// prettier-ignore
|
|
const greeting = ([
|
|
is_morning ? 'good morning' : 'good evening'
|
|
]);
|