How logicforgelab/js-projects works
This repository is a set of JavaScript learning examples, not one integrated application. Its main workflows are standalone algorithm/data-structure demonstrations, object-oriented models, generator examples, and browser Web Worker demos. The worker demos send values from a page’s main thread to a worker and display a response; two also include a small static server. Edges reflect only shown calls or messages. Worker implementations and several listed modules were not excerpted, so uncertain behavior is omitted.
Main entry points: MainThread-Worker/main.js Main-thread demo · ProcessingBinaryData/main.js Binary-data demo · TypedArray/main.js Typed-array demo · WorkingWithAnArray/main.js Array demo
Components 30
Web Workers
- Main-thread demo
Workers/MainThread-Worker/main.js - Message worker
Workers/MainThread-Worker/worker.js - Binary-data demo
Workers/ProcessingBinaryData/main.js - Binary-data worker
Workers/ProcessingBinaryData/worker.js - Demo server
Workers/ProcessingBinaryData/server.js - Typed-array demo
Workers/TypedArray/main.js - Typed-array worker
Workers/TypedArray/worker.js - Demo server
Workers/TypedArray/server.js - Array demo
Workers/WorkingWithAnArray/main.js - Array worker
Workers/WorkingWithAnArray/worker.js
Algorithms
- Binary search
algorithms-and-data-structures/algorithms/searching/binary-search.js - Jump search
algorithms-and-data-structures/algorithms/searching/jump-search.js - Bubble sort
algorithms-and-data-structures/algorithms/sorting/bubble-sort.js - Counting sort
algorithms-and-data-structures/algorithms/sorting/counting-sort.js - Merge sort
algorithms-and-data-structures/algorithms/sorting/merge-sort.js - Quick sort
algorithms-and-data-structures/algorithms/sorting/quick-sort.js - Selection sort
algorithms-and-data-structures/algorithms/sorting/selection-sort.js
Data Structures
- Dynamic array
algorithms-and-data-structures/data-structures/DynamicArray/dynamic.array.js - Singly linked list
algorithms-and-data-structures/data-structures/LinkedList/singly-linked-list.js - Stack
algorithms-and-data-structures/data-structures/StackAndQueue/stack.js - Queue
algorithms-and-data-structures/data-structures/StackAndQueue/queue.js
Object-Oriented Examples
- Employee classes
OOP/Employee-oop/employee-oop-class.js - Employee prototypes
OOP/Employee-oop/employee-oop-prototype.js - Animal classes
OOP/animal-oop/class-animal.js - Animal prototypes
OOP/animal-oop/function-animal.js
Generators
- Sequence generator
generator/BasicSequenceGenerator.js - Data-passing generator
generator/DataPassingToGenerator.js - Fibonacci generator
generator/FibonacciNumberGenerator.js - Pagination generator
generator/PaginationViaGenerator.js - ID generator
generator/nfiniteIDGenerator.js
Connections 4
- Main-thread demo → Message worker: posts message
Workers/MainThread-Worker/main.js - Binary-data demo → Binary-data worker: posts data
Workers/ProcessingBinaryData/main.js - Typed-array demo → Typed-array worker: posts array
Workers/TypedArray/main.js - Array demo → Array worker: posts array
Workers/WorkingWithAnArray/main.js