Skip to content

How to declare a boolean in TypeScript?

// There is no int type, use number
const myInt: number = 17;
const myDecimal: number = 17.5;
See also  Python code snippet - How to find location in cmd?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.