Language concepts
Side effect
Observable action beyond returning the result, such as modifying shared state or logging. Effects belong at documented boundaries.
Formal Syntax & Structure
javascript syntaxjavascript
state.count += 1Working Example
Example Snippetjavascript
let count=0;const inc=()=>++count;inc();console.log(count);