🌱 Tim's Dev Wiki

Search IconIcon to open search

JavaScript

Last updated September 16, 2022.

TODO.

There’s also Knowledge/Engineering/Languages/TypeScript.

# Rest Operator

TODO.

# Generators

TODO.

# Object Oriented Programming

# Classes

TODO.

# Inheritance

TODO.

# Prototypes

TODO.

# Modules

First, a brief timeline of JavaScript’s weird module system development:

# CommonJS

TODO.

# Dynamic Import

import(path)

# Asynchronous Programming

# Event Loop

TODO.

.. multiplexing tasks over a single thread, which means there is no need for mutexes, semaphores and other concurrency helpers.

an event-looped model is different from a multithreaded model.

When you do use real multithreading in JavaScript (through Web Workers in a browser environment or forking to create child processes in a server environment), you rarely use shared memory, meaning there’s no need to coordinate concurrent access to shared resources.

# Web Workers

TODO. Web workers are background threads. They can