JavaScript
https://2023.stateofjs.com/en-US/
Books, etc
Projects
- Intermediate level Javascript projects
- shan-shui - procedurally-generated vector-format infinitely-scrolling Chinese landscape
Guides
Equivalents
Language Fundamentals
Functions
Courtesy of @jesss_codes...
- Variables
- Scoping
- Conditions
- Objects
- Frameworks
Courtesy of @palashv2
Concepts
- Object Prototype
- Scope & Closures
- ES6 Classes
- Modules
- Hoisting
- Currying
- Array iteration methods
- Polymorphism
- Higher Order functions
IIFE (Immediately Invoked Function Expression)
An IIFE (Immediately Invoked Function Expression) is a JavaScript function that runs as soon as it is defined.
(function () {
// β¦
})();
(() => {
// β¦
})();
(async () => {
// β¦
})();
Types
- BigInt - represents bigint values (which are too large to be represented by the number primitive). Note it doesnβt allow for decimals / they will get lopped off
Filtering
- map, filter, reduce
Asyncrony and Promises
- Callback style / promise style / async + await
Utilities
Modules, Bundles, oh boy...
Example
@metamask/onboarding is made available as either a CommonJS module, and ES6 module, or an ES5 bundle.
ES6 module: import MetaMaskOnboarding from '@metamask/onboarding'
ES5 module: const MetaMaskOnboarding = require('@metamask/onboarding')
ES5 bundle: dist/metamask-onboarding.bundle.js (this can be included directly in a page)