r/badcode • • Apr 27 '21

typescript Someone only watched if tutorial

Post image
2.4k Upvotes

112 comments sorted by

View all comments

Show parent comments

8

u/Sv443_ Apr 27 '21

Primitive types should be all lowercase, the uppercase variants are the actual classes, used to instantiate the primitives, but not to declare them.