Literal Type (TypeScript)
A literal type is a type that allows only one exact value, such as the string `"left"` or the number `42`. Combined with unions, literal types restrict a…
Welcome to LearnCodingFast — free, interactive programming lessons covering Python, JavaScript, Java, C++, C#, SQL, HTML/CSS, React, AI and more. Every course is hands-on with examples you can run in your browser.
- Browse all courses
- Read the blog
- Coding tools and playgrounds
- Quick learn — cheat sheets and quizzes
- About LearnCodingFast
Loading interactive version…