SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start


From course:

TypeScript

» Start this Course
(Practice similar questions for free)
Question:

When would a literal type be used?

Author: Kate W



Answer:

For allowing an exact value which a string, number, or boolean must have. e.g., const constantString = "Hello World"


0 / 5  (0 ratings)

1 answer(s) in total

Author

Kate W
Kate W