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  How to change custom font to bold italic in Java?

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.