scrimba
Prompt Engineering
Prompt Engineering
Challenge: Build a Simple Modal with an Optimized Prompt
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Challenge: Build a Simple Modal with an Optimized Prompt
AboutCommentsNotes
Challenge: Build a Simple Modal with an Optimized Prompt
Expand for more info
practice.md
run
preview
console
## Optimizing Prompts Review - https://chat.openai.com/
You can use ChatGPT to help you optimize prompts using three basic steps:

1. Give ChatGPT an overview of what you'd like to do,
prompt to ask clarifying questions

2. Answer ChatGPT's clarifying questions

3. When ChatGPT returns an optimized prompt,
feed the prompt back to ChatGPT

## Practice: Use the steps above to optimize the following prompt:

"Show me a code snippet for a modal in React."

Console
!
SyntaxError: The requested module 'blob:https://cw3.scrimba.com/ae76528a-b5da-43f3-b9ba-533335d296bd' does not provide an export named 'default'
,
!
SyntaxError: The requested module 'blob:https://cw3.scrimba.com/ae76528a-b5da-43f3-b9ba-533335d296bd' does not provide an export named 'default'
,
!
SyntaxError: The requested module 'blob:https://cw3.scrimba.com/ae76528a-b5da-43f3-b9ba-533335d296bd' does not provide an export named 'default'
,
/index.html
-4:00