Skip to content
Sign upLog in
← Back to Community

User input in ts

Profile icon
JacobMcPherson1

how do you get user input in Typescript?

Voters
Profile icon
JacobMcPherson1
Comments
hotnewtop
Profile icon
xxpertHacker

There seems to be a misunderstanding of what TS is here, TS compiles to JS, it doesn't provide anything that JS doesn't have.

You should use whatever JS API is available, with TS typings to ensure that it is being used correctly.

I don't know how to accept input in Node.js, but in Deno I've got an example: https://replit.com/@xxpertHacker/FinancialEnviousConversion

Profile icon
BananaJellyfish
Profile icon
JacobMcPherson1

@BananaJellyfish
I mean like in the console not on a website

Profile icon
BananaJellyfish

@JacobMcPherson1
oh ok