TypeScript TypesType Annotationscourse = Web Developmentcredits = 4 isOnline = false topics = HTML, CSS, JavaScript section = CS5610, seats = 40 Object TypesCS5610 Web Development: Full stack web appsCS5800 Algorithms: no description InterfacesAlice Wonderland (001234567) is in CS5610-02Bob Builder works in WVH 310 Union and Literal Typesrole = FACULTYcourseId = RS101, userId = 123 roles = STUDENT | FACULTY | TA Enumsgrade = Aday = 2 (Wednesday) status = OPEN Function Typesadd(2, 3) = 5fullName("Alice") = Alice fullName("Alice", "Wonderland") = Alice Wonderland greet() = Hello World multiply(4, 5) = 20 Typing React PropsCS5610 (4 credits): Web Development CS5800 (3 credits): Algorithms Null, Undefined, and Narrowingdescribe(null) = nothingdescribe(7) = the number 7.0 describe("hi") = the text "HI" alice.address?.city = Boston bob.address?.city ?? "unknown" = unknown nickname ?? "none" = none any vs unknownanything.toUpperCase() = HELLOlengthOf("hello") = 5 lengthOf([1, 2, 3]) = 3 lengthOf(42) = 0 parsed name = Alice Utility Typesupdated.name = Web Developmentfields = name: Web Development, number: CS5610, credits: 4 enrollment.CS5610 = 120, enrollment.CS5800 = 85 |