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  CSS code snippet - How to change font colr?

Leave a Reply

Your email address will not be published. Required fields are marked *

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