Skip to Content
Learning TypeScript 2.x - Second Edition
book

Learning TypeScript 2.x - Second Edition

by Remo H. Jansen
April 2018
Beginner content levelBeginner
536 pages
13h 21m
English
Packt Publishing
Content preview from Learning TypeScript 2.x - Second Edition

The garbage collector

Programming languages with a low level of abstraction have low-level memory management mechanisms. On the other hand, in languages with a higher level of abstraction, such as C# or JavaScript, the memory is automatically allocated and freed by a process known as the garbage collector.

The JavaScript garbage collector does a great job when it comes to memory management, but it doesn't mean that we don't need to care about memory management.

Independent of which programming language we are working with, the memory life cycle pretty much follows the same pattern:

  • Allocate the memory you need
  • Use the memory (read/write)
  • Release the allocated memory when it is not needed anymore

The garbage collector will try to release ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering TypeScript - Fourth Edition

Mastering TypeScript - Fourth Edition

Nathan Rozentals
Learning TypeScript

Learning TypeScript

Josh Goldberg
TypeScript for Beginners

TypeScript for Beginners

Bharath Thippireddy

Publisher Resources

ISBN: 9781788391474Supplemental Content