You are viewing a single comment's thread. Return to all comments →
function printArray<T>(item: T): void { console.log(item); } function main() { const numberQuantity = +readLine() for (let i = 0; i < numberQuantity; i++) { printArray(readLine()) } const wordQuantity = +readLine() for (let i = 0; i < wordQuantity; i++) { printArray(readLine()) } }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 21: Generics
You are viewing a single comment's thread. Return to all comments →
Typescript (Btw, this is an Unexplained Bad Question, date:16.01.2024)