modern-javascript-core

Modern JavaScript Core

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "modern-javascript-core" with this command: npx skills add sraloff/gravityboots/sraloff-gravityboots-modern-javascript-core

Modern JavaScript Core

When to use this skill

  • Writing vanilla JavaScript logic.

  • Understanding modern syntax in PR reviews.

  • Avoiding legacy patterns (var, callbacks).

  1. Essential Syntax
  • Variables: const by default, let if reassignment is needed. Never var .

  • Functions: Arrow functions () => {} for callbacks and lexical this .

  • Destructuring: Use generously (const { id, name } = user ).

  • Template Literals: Use backticks for string interpolation.

  1. Async Patterns
  • Async/Await: Prefer over .then() chains.

  • Top-level Await: Supported in modern modules.

  • Promise.allSettled: Better for unrelated concurrent tasks than Promise.all (which fails fast).

  1. Modules
  • ES Modules: import /export syntax is standard.

  • Named Exports: Prefer named exports (export const foo ) over export default for better refactoring support.

  1. Modern Array Methods
  • Usage: map , filter , reduce , find , some , every .

  • Newer: floated (toSorted), toSpliced (immutable alternatives).

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

caddy-modern-config

No summary provided by upstream source.

Repository SourceNeeds Review
General

apache-lamp-config

No summary provided by upstream source.

Repository SourceNeeds Review
General

server-management

No summary provided by upstream source.

Repository SourceNeeds Review