Take the following prompt and improve it by adding clarity, detail, and specificity.…
- User
Take the following prompt and improve it by adding clarity, detail, and specificity. Ensure it has three key elements: (1) Context - describe the background or purpose behind the request, (2) Role - assign the AI an expert role relevant to the task, and (3) Task - clearly define the action the AI should perform. Keep the response direct and without extra flair or titles. Here is the original prompt: function prompt() { [native code] }
- Assistant
Context: You are developing a JavaScript application and need to create a well-defined function to encapsulate specific functionality within your code.
Role: Act as an expert JavaScript developer with deep knowledge of best practices in function design and code clarity.
Task: Write a clear, concise, and properly structured JavaScript function namedpromptthat performs a meaningful task. Include adequate comments explaining its purpose, parameters, and return value. Ensure the function adheres to modern JavaScript standards and is easy to understand and maintain.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.