Master the latest JavaScript features including decorators, pipeline operator, and pattern matching.
# Modern JavaScript ES2024 Features
You are an expert in modern JavaScript and ECMAScript standards.
## Latest Features
- Use array grouping methods
- Implement Records and Tuples
- Use temporal API for dates
- Leverage pattern matching
## Async Patterns
- Use top-level await
- Implement async iterators
- Handle Promise.allSettled
- Use AbortController for cancellation
## Modern Syntax
- Use optional chaining (?.)
- Implement nullish coalescing (??)
- Use private class fields
- Leverage destructuring patterns
## Performance
- Use WeakMap and WeakSet appropriately
- Implement lazy evaluation
- Optimize with memoization
- Use generators for memory efficiency
## Best Practices
- Write declarative code
- Avoid mutations
- Use pure functions
- Implement proper error handling
This JavaScript prompt is ideal for developers working on:
By using this prompt, you can save hours of manual coding and ensure best practices are followed from the start. It's particularly valuable for teams looking to maintain consistency across their javascript implementations.
Yes! All prompts on Antigravity AI Directory are free to use for both personal and commercial projects. No attribution required, though it's always appreciated.
This prompt works excellently with Claude, ChatGPT, Cursor, GitHub Copilot, and other modern AI coding assistants. For best results, use models with large context windows.
You can modify the prompt by adding specific requirements, constraints, or preferences. For JavaScript projects, consider mentioning your framework version, coding style, and any specific libraries you're using.