JavaScript Language Concepts
Overview
About this index
These guides explain core JavaScript ideas that other tutorials (including Ramda) link to: arrows, closures, destructuring, spread, currying, await, and more.
Index
Concepts table
| Concept | Summary |
|---|---|
Arrow Functions | concise function syntax with =>, lexical this, when to use arrows vs function, and examples that map and filter arrays. |
await | pause an async function until a Promise settles, read the resolved value, handle rejection with try/catch, and compare await to .then(). |
Closures | how inner functions remember outer variables, factory functions, private state, and why closures power callbacks and currying. |
Comma Operator | evaluate several expressions left to right and return the last value, with examples in for loops and parentheses. |
Currying | turn a multi-argument function into a chain of single-argument calls, build reusable helpers, and see how Ramda uses curry. |
Default Parameters | give function parameters fallback values when callers omit arguments or pass undefined. |
Destructuring | unpack arrays and objects into variables, rename fields, set defaults, and nest patterns. |
Immutability | update data by creating new arrays and objects instead of mutating, with spread examples and why Ramda prefers this style. |
Rest Parameters | gather remaining arguments into a real array with ... in the parameter list, and contrast rest with the arguments object. |
Sliding Window | walk overlapping chunks of an array to compare neighbors, compute moving averages, and see how Ramda aperture helps. |
Spread Syntax | expand arrays and objects with ..., clone shallowly, merge objects, and pass array items as function arguments. |
Equality | === vs ==, Object.is, and SameValueZero used by Map and Set. |
Prototype chain | how property lookup walks prototypes and how class extends builds on it. |
Strict mode | "use strict", safer errors, and this rules in bare function calls. |
this | how this is set in methods, arrows, and with bind/call/apply. |
async/await | write asynchronous code with async functions and await. |
Data types | primitives vs objects and typeof quirks. |
Event loop | call stack, tasks, and microtasks. |
Hoisting | how declarations are available before their line. |
Iterators | iterable protocol, next(), and for...of. |
Scope | global, function, and block scope rules. |
Temporal dead zone | why let/const throw before initialization. |
Truthy / falsy | which values act as false in conditions. |
Type coercion | implicit conversions and how to avoid surprises. |
Garbage collection | how unreachable values are reclaimed. |
Memory | avoid leaks from lingering references. |
Modules guide | import/export mental model. |
null / undefined | empty values and nullish checks. |
Objects by reference | why object assignment shares state. |
Promises guide | async values, then/catch, and states. |
try...catch | run risky code, handle thrown errors, use finally for cleanup, and rethrow when needed. |
FAQ
Frequently Asked Questions
Short beginner tutorials for language features that other CodeToFun guides link to.
Start with Arrow Functions, then Destructuring and Spread Syntax.
Ramda tutorials often mention currying, immutability, and spread. These pages explain the underlying JavaScript ideas.
CODETOFUN NEWS
Stay Ahead in Tech
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
6 people found this page helpful
