Tag view

#best-practices

Cross-subject tag search for related interview cards.

Clear

Results update as you type. Press / to jump straight into search.

Tagged with best-practices

3 cards

JavaScript Easy Theory

JavaScript best practices: readable code, const by default, avoiding globals, preferring ===, immutable patterns, proper error handling, modular code, and meaningful naming

Strong JavaScript code emphasizes readability, safe defaults, modular design, clear errors, and predictable state changes.

  • Prefer `const` unless reassignment is needed
  • Avoid accidental globals and hidden mutation
  • Good names and modules reduce cognitive load

JavaScript best practices: readable code, const by default, avoiding globals, preferring ===, immutable patterns, proper error handling, modular code, and meaningful naming

React Medium Theory

React security and best practices

Safe React code avoids dangerous HTML injection, unnecessary direct DOM manipulation, state mutation, and side effects during render.

  • `dangerouslySetInnerHTML` is risky
  • Keep components focused and state colocated
  • Avoid premature optimization and hidden mutation

React security and best practices