---
title: "Modern JavaScript Patterns"
type: skill
id: "wshobson-agents/languages/modern-javascript-patterns"
category: "Engineering"
publisher: "Seth Hobson"
license: "MIT"
source: "https://github.com/wshobson/agents/tree/7e2fb55"
canonical: "https://labs.pho.chat/en/skills/wshobson-agents/languages/modern-javascript-patterns"
open_in_pho: "https://pho.chat/customize?item=wshobson-agents%2Flanguages%2Fmodern-javascript-patterns&utm_source=labs&utm_medium=skill-page&utm_campaign=skills-library"
---

# Modern JavaScript Patterns

Master ES6+ features including async/await, destructuring, spread operators, arrow functions, promises, modules, iterators, generators, and functional programming patterns for writing clean, efficient JavaScript code. Use when refactoring legacy code, implementing modern patterns, or optimizing JavaScript applications.

Source: Seth Hobson (MIT), copied at a pinned commit. Free to use. Part of the Phở Skills library (https://labs.pho.chat/en/skills).
Skill set: JavaScript, TypeScript, Go and Rust (https://labs.pho.chat/en/skills/wshobson-agents/languages.md).

## What it covers
- When to Use This Skill
- Detailed patterns and worked examples
- Best Practices

## Other skills in this set
- [JavaScript Testing Patterns](https://labs.pho.chat/en/skills/wshobson-agents/languages/javascript-testing-patterns.md): Implement comprehensive testing strategies using Jest, Vitest, and Testing Library for unit tests, integration tests, and end-to-end testing with mocking, fixtures, and test-driven development. Use…
- [TypeScript Advanced Types](https://labs.pho.chat/en/skills/wshobson-agents/languages/typescript-advanced-types.md): Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications. Use when implementing complex…
- [Go Concurrency Patterns](https://labs.pho.chat/en/skills/wshobson-agents/languages/go-concurrency-patterns.md): Master Go concurrency with goroutines, channels, sync primitives, and context. Use when building concurrent Go applications, implementing worker pools, or debugging race conditions.
- [Memory Safety Patterns](https://labs.pho.chat/en/skills/wshobson-agents/languages/memory-safety-patterns.md): Implement memory-safe programming with RAII, ownership, smart pointers, and resource management across Rust, C++, and C. Use when writing safe systems code, managing resources, or preventing memory…
- [Rust Async Patterns](https://labs.pho.chat/en/skills/wshobson-agents/languages/rust-async-patterns.md): Master Rust async programming with Tokio, async traits, error handling, and concurrent patterns. Use when building async Rust applications, implementing concurrent systems, or debugging async code.

## Use it
- In Phở: open https://pho.chat/customize?item=wshobson-agents%2Flanguages%2Fmodern-javascript-patterns&utm_source=labs&utm_medium=skill-page&utm_campaign=skills-library and press Try, or add it so Phở loads it whenever a request matches. Phở works with your own API key (OpenAI, Anthropic, Google and others).
- Full instructions (original SKILL.md, unchanged): https://labs.pho.chat/skills/raw/wshobson-agents/languages/skills/modern-javascript-patterns/SKILL.md
- Original files: https://github.com/wshobson/agents/tree/7e2fb55 (MIT).
- Full machine-readable index: https://labs.pho.chat/skills.json
