2026 JavaScript Cheatsheet | SheCodes

Free cheatsheet · 60 snippets

SheCodes JavaScript Cheatsheet

SheCodes JavaScript cheatsheet

AI prompts that use JavaScript

All prompts

BUILD A pSEO TEMPLATE

“Build a programmatic SEO route in my Next.js app. Pattern: /[city]/coffee-guide. The page should: (1) accept a city slug as a param, (2) fetch coffee shop data for that city from my Supabase coffee_shops table, (3) render a long-form guide with a hero, intro paragraph, list of 10-15 shops with descriptions, FAQ, and a CTA. Use generateStaticParams to pre-render every city. Add unique meta tags, OG image, and JSON-LD structured data per city.”

Full performance audit

“Audit my Next.js app for performance issues. Check for large images, unused JavaScript, slow API calls, and missing lazy loading. Suggest specific fixes.”

The starter prompt

“I want to start a new project. It will be [one-sentence description of what you're building]. Please: 1. Create a new Next.js project with TypeScript and Tailwind CSS 2. Initialize a git repository 3. Add a sensible .gitignore (Next.js + .env files) 4. Create a single homepage that says "Hello, [project name]" in a centered hero 5. Confirm everything runs by starting the dev server Walk me through any choices I need to make in plain English.”

Start from a template

“I want to start from a Next.js + Supabase + Tailwind starter template. Find a good free one (like the Vercel + Supabase starter), clone it, install dependencies, and get it running locally. Explain what each main folder does.”

Add breadcrumbs

“Add breadcrumbs to every page (except the homepage). They should show the path from home to the current page. For example: Home › Blog › My First Post. Use the Next.js Link component so they navigate instantly.”

Upload a screenshot and build it

“I'm uploading a screenshot of a website design I like. Please recreate this layout and visual style for my [type of project]. Use my color palette: Primary [#hex], Secondary [#hex], Background [#hex]. Use [font name] for headings and [font name] for body text. Match the spacing, typography hierarchy, and overall feel as closely as possible. Build it with Next.js and Tailwind CSS.”

👩‍💻

What is SheCodes?

SheCodes teaches coding skills to busy women
Start your dream career in tech

4.9/5, our workshops are highly recommended by
250,000+ women, including employees from these companies