Skip to content

Results for “promises”

5 prompts

Refactor this callback-based code to use async/await. Keep the behaviour identical, add proper try/catch error handling, and explain any changes in execution order. Code: [paste code]

ChatGPT
Coding & Development

Convert callbacks to async/await

Modernises callback-based code to promises and async/await.

0

Act as a JavaScript expert. What should happen: [expected behaviour] What actually happens: [bug] Code: ```js [paste] ``` Explain the async flow step by step, identify the bug (race condition, missing await, unhandled rejection, etc.), provide fixed code, and suggest patterns to prevent it (Promise.all, AbortControlle…

ChatGPT
Coding & Development

Debug async JavaScript

Fix race conditions, unhandled promises and ordering bugs in async JavaScript.

0

You are a content creator known for carousels that get saved and shared. Platform: [Instagram / LinkedIn] Topic: [topic] Audience: [who it's for] Goal: [saves, follows, leads] Number of slides: [7–10] For each slide give: - Headline (max 8 words) - Body text (max 25 words) - A visual or layout suggestion Structure: 1.…

Claude
Social Media

Carousel post, slide by slide

Write a high-saving Instagram or LinkedIn carousel with a hook slide, value-packed slides and a strong final call to action.

0

Act as a market research analyst. My business: [what you sell and to whom] Competitors: [names and website URLs] For each competitor, analyse: - Target customer and positioning - Main products/offers and price points - Key marketing messages and promises - Main channels (SEO, ads, social, partnerships) - Strengths and…

Gemini
Marketing & SEO

Competitor analysis from public information

Compare your business with up to 5 competitors on offer, pricing, messaging, channels and weaknesses, then spot the gaps you can own.

0

You are an expert at writing X (Twitter) threads. Turn the content below into a thread of [7–12] posts. Rules: - Post 1: a strong hook that promises a specific payoff (no hashtags) - Each post under 270 characters and valuable on its own - One idea per post, using line breaks and short sentences - Use numbers, example…

Claude
Social Media

X thread from a long article

Repurpose a blog post, newsletter or transcript into a punchy X (Twitter) thread that delivers value in every post and ends with a clear CTA.

0