Skip to content

JavaScript

https://2023.stateofjs.com/en-US/

Books, etc

Projects

Guides

Equivalents

Language Fundamentals

Functions

Courtesy of @jesss_codes...

javascript functions

  • Variables
  • Scoping
  • Conditions
  • Objects
  • Frameworks

javascript array functions

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)