Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On TypeScript for C# and .NET Core Developers

You're reading from   Hands-On TypeScript for C# and .NET Core Developers Transition from C# to TypeScript 3.1 and build applications with ASP.NET Core 2

Arrow left icon
Product type Paperback
Published in Oct 2018
Publisher
ISBN-13 9781789130287
Length 460 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Francesco Abbruzzese Francesco Abbruzzese
Author Profile Icon Francesco Abbruzzese
Francesco Abbruzzese
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Introduction to TypeScript FREE CHAPTER 2. Complex Types and Functions 3. DOM Manipulation 4. Using Classes and Interfaces 5. Generics 6. Namespaces and Modules 7. Bundling with WebPack 8. Building TypeScript Libraries 9. Decorators and Advanced ES6 Features 10. Angular ASP.NET Core Project Template 11. Input and Interactions 12. Angular Advanced Features 13. Navigation and Services 14. Assessments 15. Other Books You May Enjoy

Questions

  1. What are the main benefits of adding types to JavaScript?
  2. Is it possible to get the type of a TypeScript variable at runtime? How?
  3. At the moment, is there any chance the TypeScript team will add something like C# operator overloading so users may define custom behavior for + and - when applied to their custom types? Why?
  4. Is there a way to define a variable that might contain both numbers and strings? What is the best way to do it?
  5. What is the return type of a function that returns no value?
  6. What is the scope of a variable that has not been declared?
  7. How many instances of the counter variable are generated by a var-based for loop that iterates 100 times? How many instances are generated by the let version of the same loop?
  8. Is this assertion true: TypeScript string variables are always allowed to have a null value? Explain.
  9. What is the most space-efficient way to define an enum (the one that generates the least code and requires the least runtime memory)?
  10. How do you declare that the values of an enum are C#-like bit flags?

You have been reading a chapter from
Hands-On TypeScript for C# and .NET Core Developers
Published in: Oct 2018
Publisher:
ISBN-13: 9781789130287
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime