$ ./guess_the_languageProgramming Languages
Programming Languages · easy · #604

Which programming language is this?

const days: readonly string[] = ["mon", "tue", "wed"];
let total: number = days.length;
console.log(`Days: ${total}`);

Answer: TypeScript

The : readonly string[] and : number type annotations on plain variables are TypeScript.
Play Programming Languages ▸