Sponsored
Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows.
$36.99 with 34 percent savings
List Price: $55.99 BERJAYA
FREE delivery Friday, June 5
Or Prime members get FREE delivery Tomorrow, June 1. Order within 10 hrs 40 mins. Join Prime
In Stock
$$36.99 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$36.99
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Shipper / Seller
Amazon.com
Amazon.com
Shipper / Seller
Amazon.com
Returns
FREE 30-day refund/replacement
FREE 30-day refund/replacement
Quick refund
Usually issued within 24 hours. See exceptions
FREE return
At least one free return option available.
Convenient dropoff
At any of our 50,000 US locations.
See return policy
Gift options
Available at checkout
Available at checkout This item is a gift. Change
At checkout, you can add a custom message, a gift receipt for easy returns and have the item gift-wrapped
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

  • Learning TypeScript: Enhance Your Web Development Skills Using Type-Safe JavaScript

Follow the author

Get new release updates & improved recommendations
Something went wrong. Please try your request again later.

Learning TypeScript: Enhance Your Web Development Skills Using Type-Safe JavaScript 1st Edition

4.4 out of 5 stars (125)

{"desktop_buybox_group_1":[{"displayPrice":"$36.99","priceAmount":36.99,"currencySymbol":"$","integerValue":"36","decimalSeparator":".","fractionalValue":"99","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"syna31lM2T6V%2F83wJVrRpJjQCBlciGGYVcYLebpp%2Fc4qHU2B%2F8M2dFRil731BDzllU43BCVbTMCZI5SYkrNHo8NeiUPFj5an7ajoaT2lZQgJo4wsKt6wsp5dPGlVc3ORvTP2AzWIqTrhzAV3lIcnhA%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}]}

Purchase options and add-ons

TypeScript has conquered the world of JavaScript: it's one of the world's fastest growing and most popular languages across developer surveys, widely used in consumer and business companies alike, and frequently credited for helping massive web applications scale. But what is TypeScript? How does it work, why does it work, and how can we use it?

Learning TypeScript takes beginner to intermediate JavaScript programmers from knowing nothing about "types" or a "type system" to full mastery of the fundamentals of TypeScript. It's more than a means to find bugs and typos--it's a useful system for declaring the way our JavaScript should work and helping us stick to it. You'll learn how TypeScript:

  • interacts with JavaScript
  • analyzes and understands code
  • augments your existing development pattern
  • helps you document your code
  • works with IDEs to provide refactoring tools
  • assists local development in refactoring code
  • helps you develop more quickly with fewer bugs

Sponsored

Frequently bought together

This item: Learning TypeScript: Enhance Your Web Development Skills Using Type-Safe JavaScript
$36.99
Get it as soon as Friday, Jun 5
In Stock
Ships from and sold by Amazon.com.
+
$41.33
Get it as soon as Friday, Jun 5
Only 12 left in stock (more on the way).
Ships from and sold by Amazon.com.
+
$29.43
Get it as soon as Friday, Jun 5
Only 15 left in stock (more on the way).
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
Some of these items ship sooner than the others.
Choose items to buy together.

Customers also bought or read

Loading...

From the brand


From the Publisher

Learning TypeScript

From the Preface

Who Should Read This Book

If you have an understanding of writing JavaScript code, can run basic commands in a terminal, and are interested in learning about TypeScript, this book is for you.

Maybe you’ve heard TypeScript can help you write a lot of JavaScript with fewer bugs (true!) or document your code well for other people to read (also true!). Maybe you’ve seen TypeScript show up in a lot of job postings, or in a new role you’re starting.

Whatever your reason, as long as you come in knowing the fundamentals of JavaScript—variables, functions, closures/scope, and classes—this book will take you from no TypeScript knowledge to mastering the fundamentals and most important features of the language.

By the end of this book, you will understand:

  • The history and context for why TypeScript is useful on top of “vanilla” JavaScript
  • How a type system models code
  • How a type checker analyzes code
  • How to use development-only type annotations to inform the type system
  • How TypeScript works with IDEs (Integrated Development Environments) to provide code exploration and refactoring tools

And you will be able to:

  • Articulate the benefits of TypeScript and general characteristics of its type system.
  • Add type annotations where useful in your code.
  • Represent moderately complex types using TypeScript’s built-in inferences and new syntax.

TypeScript is a wildly popular language in both industry and open source:

  • GitHub’s 2021 and 2020 State of the Octoverses have it at the platform’s fourth top language
  • StackOverflow’s 2021 Developer Survey has it at the world’s third most loved language
  • The 2020 State of JS Survey shows TypeScript has consistently high satisfaction and usage amounts

Navigating this Book

Learning TypeScript has two purposes:

  • You can read through it once to understand TypeScript as a whole.
  • Later, you can refer back to it as a practical introductory TypeScript language reference.

This book ramps up from concepts to practical use across three general sections:

  • Part I, “Concepts”: How JavaScript came to be, what TypeScript adds to it, and the foundations of a type system as TypeScript creates it.
  • Part II, “Features”: Fleshing out how the type system interacts with the major parts of JavaScript you’d work with when writing TypeScript code.
  • Part III, “Usage”: Now that you understand the features that make up the TypeScript language, how to use them in real-world situations to improve your code reading and editing experience.

Editorial Reviews

About the Author

Josh Goldberg is a frontend developer from New York with a passion for open source, static analysis, and the web. He is a full-time open-source maintainer who contributes regularly to TypeScript and open-source projects in its ecosystem, such as typescript-eslint and TypeStat. His past work includes spearheading Codecademy's usage of TypeScript, helping create its Learn TypeScript course, and architecting rich client applications at Microsoft. His projects range from static analysis to meta-languages to re-creating retro games in the browser. Also cats.

Product details

  • Publisher ‏ : ‎ O'Reilly Media
  • Publication date ‏ : ‎ July 12, 2022
  • Edition ‏ : ‎ 1st
  • Language ‏ : ‎ English
  • Print length ‏ : ‎ 317 pages
  • ISBN-10 ‏ : ‎ 1098110331
  • ISBN-13 ‏ : ‎ 978-1098110338
  • Item Weight ‏ : ‎ 2.31 pounds
  • Dimensions ‏ : ‎ 7 x 0.5 x 9.25 inches
  • Best Sellers Rank: #160,924 in Books (See Top 100 in Books)
  • Customer Reviews:
    4.4 out of 5 stars (125)

About the author

Follow authors to get new release updates, plus improved recommendations.
Josh Goldberg
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Hi, I'm Josh! I'm a frontend developer from New York with a passion for open source, static analysis, and the web. I'm a full time open source maintainer and work on projects in the TypeScript ecosystem such as typescript-eslint and TypeStat. I'm also the author of O'Reilly's Learning TypeScript O'Reilly. I'm passionate about bringing accessible education to the masses in a sustainable way.

Sponsored

Customer reviews

4.4 out of 5 stars
125 global ratings
Sponsored

Top reviews from the United States

  • 5 out of 5 stars
    Boy did I learn a lot - and had fun doing it
    Reviewed in the United States on July 27, 2022
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Definitely recommend this book especially if you're a javascript efficienado with no knowledge or very little of type script and even if you have a lot of knowledge its still a good book to have. The book was filled with great examples and an easy to follow guide on how to incorporate types into ur javascript repos and libraries. Great book!

    5 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 4 out of 5 stars
    Clear and not larded up.
    Reviewed in the United States on July 14, 2022
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This is exactly the kind of tech writing that is needed today. It's really clear and to the point and not larded up with filler content.

    *Edit. Dropping one star to four. While I stand by my original review I felt the need to adjust it after completing the book. A little more than half way through I came to the conclusion that the content was going to be insufficient ...and it was. You're going to want something with a bit more "meat" to it and by "meat" I mean greater depth to truly "enhance your web development skills".

    8 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Best way to learn TypeScript
    Reviewed in the United States on July 12, 2022
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This is my favorite resource for learning TypeScript. From introductory to advanced topics, It's all clear, concise, and comprehensive. I found Josh to be an excellent—and fun—writer 😃

    4 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    As Promised
    Reviewed in the United States on September 22, 2024
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 3 out of 5 stars
    Typos combined with brain teasers
    Reviewed in the United States on February 27, 2024
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I must rate the content of this book as rather poor compared to many programming language books i have read. I am a coder with a background in Java, C#, and Python and I bought this because i recently started working on a new project at work that is developed in Typescript and Angular, so i wanted to understand the basics of Typescript better.

    1st: The book has too many errors and they are almost all in the coding examples. This was leading me to be really confused on a few examples until i found the OReilly online errata website for errors in their books, and my suspicions were confirmed that the code was wrong in quite a few sections.

    2nd: This books teaches in a way i dont much care for. It is only my opinion, but i'd like clear examples of the concepts, not brain teasers every chapter. The writing describes feature X, and then the code example follows purposefully written to be a brain teaser for feature X. Rarely is a simple example given. This, combined with the typos i mentioned, made reading these to get the basic understanding of Typescript feel like much more of a choir and makes it harder for me to use the book as a future reference.

    Overall, though, I am halfway through the book and it isnt all bad. I have my complaints, but the information is ordered in logical way and i have seen technical books that go off course far too often, and this one does a good job of staying on topic.

    3 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Excellent book!
    Reviewed in the United States on July 27, 2022
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This books is amazing! Would recommend if you want to gain deep understanding of typescript.

    3 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Excellent TypeScript Resource
    Reviewed in the United States on April 16, 2024
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Excellent book, I read it cover to cover and worked through all of the Web exercises.

    I'm an experienced JavaScript developer and wanted to start using TypeScript in my new projects. I read this book and now I am using TypeScript on a day today basis in production code.

    The best part of this book was how language features are described and always backed up with sample code to illustrate the concepts. This approach really helped with my understanding of concepts.

    Honestly, I can't recommend this book highly enough! The writing style and quality was top-notch and always hit on the topics with enough depth, but not too much.

    If you want to learn TypeScript in a practical way and start using it, you can stop with this book, it's that good.

    One person found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 3 out of 5 stars
    Great resource for learning TS, but a lot of typos and mistakes
    Reviewed in the United States on December 7, 2022
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Really well structured, thorough, and easy to follow. A great resource for someone starting their journey with TS or for seasoned TS devs who want to more deeply understand the code that they write. Despite learning a lot and enjoying the book, I unfortunately couldn’t give the book 5 stars due to the amount of typos and inaccuracies throughout the book. Not just misspellings, but complete, obvious mixups, mistakes, or incorrect words used that could potentially be very confusing for someone new to TS. Did no one proofread this book before publishing??

    10 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

Top reviews from other countries

    Translated by Amazon
    See original
  • 5 out of 5 stars
    A very complete book
    Reviewed in France on June 13, 2023
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I bought this book to enhance my knowledge about Typescript and I found what I wanted. 5/5

    Easy to understand and no useless explications.

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Love it!
    Reviewed in Australia on November 5, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I love it! I love this book so much. I really appreciate the effort the author put into designing the exercises and especially into providing such clear, thoughtful solutions. I learned so much and truly enjoyed the author’s style.

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Recommended for anyone want to learn Typescript
    Reviewed in Germany on January 16, 2023
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I have been using Typescript since 2017, but the book was really helpful to understand the littlet details about the Typescript.

    Using as Const narrows the types, this was an amazing trick which I learned from the book.

    Josh is a great teacher, book is recommended for anyone who wants to learn Typescript.

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Un libro da leggere
    Reviewed in Italy on September 17, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Indispensabile

    Sending feedback...
    Thanks, we'll investigate in the next few days.
    Translated from Italian by Amazon
    See original
  • 4 out of 5 stars
    The Best Book for JS Devs New to Static Types (but Offers Plenty for Pros, Too)
    Reviewed in the United Kingdom on September 17, 2022
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This is a great book overall, for both JS developer brand new to TypeScript, or even TS pros.

    I've read most of the TypeScript books currently on the market, and I believe this is the best one currently out (circa Fall, '22) for a strong JS developer who has never used a statically typed language before (Goldberg assumes you know JS/ES6 well - so if you don't, learn that first!). This book starts from the ground level with the core primitives, and explains the mechanics of TypeScript in a clear methodical way throughout the book. The first 2 chapters will put pros to sleep (skip 'em if that's you), but newbies will get the solid foundation they need to understand the mechanics of using static types at the simplest level.

    From there, the book quickly moves into more advanced territory - but everything continues to build on the things explained before. I think Goldberg did an excellent job teaching how the language itself works, with no assumptions about his readers' experience beyond strong command of JavaScript (ES6+).

    That said, this book offers plenty of value for pros as well. Each chapter includes solid best-practice tips, gotchas, and detailed explanations about aspects of TS I haven't read in any other book. Granted, you need to dig thru a lot of stuff you may already know to find those nuggets - but just read it as a refresher of all the basics while you hunt for those little golden details.

    I should call out the last chapter in particular, for pros - as Goldberg goes over some of the most advanced aspects of the language (conditional types, mapped types, template literal types, etc.). If pros are asleep for the first few chapters, newbies be warned: the last couple chapters may make your brain hurt (and don't worry, you're not alone).

    Unfortunately, I do have a few major complaints - which prevent me from giving this book a full 5 stars.

    1) There are too many sloppy technical errors to ignore (mostly in the code examples). A good developer should spot most of them - but the technical editor absolutely should have, too. I expect much better from O'Reilly, and they missed the mark this time.

    2) Across the board the code examples are just too contrived and minimal (you could call them 'academic'). This isn't unusual for a programming language book - but what this book really lacks is almost any code examples that relate to a real-world use case (i.e. code that builds towards a working demo app or larger project context).

    3) As with #2, overall I think this book is simply too short. At 271 pages it covers almost everything it takes on "well enough" – but Goldberg should have added another 100+ pages to offer more examples and context in almost every chapter. It just moves too fast, without going as far/deep as it could have. I'm not saying it's skimpy or not worth the price - I just wish he'd added more.

    Final word: This is the best book I've read to learn TypeScript (as the title suggests) for any mid-level+ JS developer who is brand new to a statically typed language. It also offers plenty of great tips and tricks for pros along the way. Sadly, it's a little too short and sloppy to get the full 5 stars - but if you know that going in, you won't be disappointed!

    Sending feedback...
    Thanks, we'll investigate in the next few days.