Garbage collection and memory leaks in JavaScript

#JavaScript #V8 #GarbageCollection V8, a JavaScript engine implemented in Chrome, is known to perform periodic garbage collection. While searching for information related to this, I will try to follow Daniel Khan’s writing and summarize my feelings. The article can be read at the link below. Understanding Garbage Collection and Hunting Memory Leaks in Node.js Resident Set ¶ V8 operates memory with a structure called ‘Resident Set’. Just as the Java Virtual Machine (JVM) divides memory into several segments, it is said that memory is divided into Code, Stack, and Heap areas by the Resident Set structure....

November 29, 2017 · baek9

JavaScript's prototype chain

#JavaScript #Prototype JavaScript is often referred to as a prototype-based language. Prototype literally means prototype. Every object you create with JavaScript is paired with a prototype, i.e. a prototype object. Using this structure, inheritance, one of the important concepts in Object-Oriented Programming (OOP) using C++, can be easily implemented in JavaScript as well. In JavaScript, this is called a ‘prototype chain’. To understand the prototype chain, you first need to get a feel for the prototype object....

November 25, 2017 · baek9
🇰🇷