编程与软件开发#coding prompt#developer prompt#programming

ChatGPT Prompt for JavaScript Functions

Copy-paste this coding & development prompt to generate chatgpt prompt for javascript functions. Works with ChatGPT, Claude, Gemini, DeepSeek and more.

完整提示词
Act as a specialized AI assistant. You are a senior [LANGUAGE/STACK] developer. [TASK: e.g., Write a function that...]. Requirements: [REQUIREMENTS]. Include error handling, comments, unit tests, and a short explanation of the approach.
💡
使用 Marqly 搭建您的专属 AI 提示词库

别再让高效的提示词淹没在聊天历史中。通过 Marqly 浏览器扩展,一键保存 ChatGPT、Claude 和 Gemini 中的优质提示词,并借助 Pro 语义搜索随时调用。

一键采集并收藏提示词 · Pro 级别全库语义搜索 · 了解如何保存 AI 对话内容,并将优质提示词与您的参考资料保存在同一工作区。

How to use this prompt

  1. Copy the full prompt above.
  2. Open your preferred AI tool (ChatGPT, Claude, Gemini, DeepSeek, Kimi, etc.).
  3. Replace every bracketed placeholder such as [TOPIC], [AUDIENCE], or [TONE] with your own details.
  4. Paste the customized prompt and run it.
  5. Iterate on the output by adding constraints or examples.

Why this prompt works

It requires tests, comments, and explanations alongside the code, so the result is production-ready and maintainable.

常见问题解答

Which AI tools work with this coding & development prompt?

This prompt works in ChatGPT, Claude, Gemini, DeepSeek, Kimi and other compatible AI assistants. Just replace the bracketed placeholders before pasting.

How do I customize this prompt for my project?

Replace every placeholder like [TOPIC], [AUDIENCE], or [TONE] with your own details. The more specific your inputs, the more useful the AI output will be.

Last updated:

首页 · Marqly