Migrate from JavaScript to TypeScript and write well-structured, statically-typed, and reusable code
Key Features
- Migrate from JavaScript to TypeScript and write your code in a highly readable, scalable, and maintainable format
- Use TypeScript to build robust and intuitive frontends for your web apps
- Implement the latest TypeScript 3.x features with real-world examples by converting backend code from JavaScript to TypeScript
Book Description
TypeScript and JavaScript are must-know languages for many web developers. While JavaScript is the de facto choice for web development, this course will show you why you need TypeScript to make your code more efficient.
This course is designed to get you started with TypeScript and help you implement a variety of real-world coding examples. In this course, you will learn how to convert several JavaScript code samples into TypeScript and master how these relate to JavaScript. You will learn the essentials of TypeScript such as objects, functions, and classes and appreciate the similarities and differences between the JavaScript and TypeScript syntaxes. In addition, you will learn how to configure Typescript projects according to your needs and implement best practices.
By the end of this course, you will be confident to start your projects in TypeScript. You will have the skills you need to utilize TypeScript for writing better frontends for your web apps.
The code bundle for this course is available at - https://github.com/PacktPublishing/TypeScript-for-JavaScript-Developers
What you will learn
- Configure the TypeScript environment to run and transpile your code into JavaScript
- Implement basic TypeScript types to perform simple operations
- Structure code using interfaces to define the shape of objects effectively
- Write dynamic code with the help of generics
- Maintain a modular structure and reduce complexity using object-oriented programming
- Create dependencies using namespaces and modules
- Implement advanced types to help you define more specific types
Who this book is for
This course is suitable for JavaScript developers and aspiring web developers with pre-existing skills in JavaScript, and for anyone keen to add TypeScript to their skillset and get hands-on with both TypeScript and JavaScript.