When the button #submitBtn is clicked, disable the button and change its text to "Submitted".
What you'll train
Specify the output
What you get
How to ask the AI
Clearly tell the AI both requirements when the button #submitBtn is clicked: disabling the button (disabled) and changing its text to "Submitted". Make sure to specify both clearly so that neither is left unimplemented.
If you ask vaguelyThe AI often only disables the button and forgets to change the displayed text to "Submitted".
あなたのコード
プレビュー
AIレビュー(プロンプト練習)
コードはChatGPTやClaudeに出させたものを貼って構いません。
ここでの本番は「次にAIへ出す指示」です。評価軸は1つだけ見て、弱点・指示の穴・改善例を返します。
テストに落ちていてもレビューできます。落ちた理由と、指示に足りなかった情報を結びつけます。