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:

What type will TypeScript infer for "age"? const age = 6

Author: John Pencola



Answer:

6 Because the age variable is a const, it is the most specific type TypeScript can associate with it.


0 / 5  (0 ratings)

1 answer(s) in total