๐—ง๐˜†๐—ฝ๐—ฒ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ฃ๐—ฟ๐—ถ๐—บ๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ง๐˜†๐—ฝ๐—ฒ๐˜€ ๐—š๐˜‚๐—ถ๐—ฑ๐—ฒ

TypeScript has 7 primitive types. They are the simplest building blocks of your code. Each type holds one value.

You use these three most often:

The other four serve specific needs:

Follow these rules for better code:

This keeps your code safe and clean.

Source: https://dev.to/krunalkanojiya/how-to-use-primitive-types-in-typescript-string-number-and-boolean-19o9