A string consisting of lowercase letters and underscores, such as hello_world, is given on one line. Convert it to camelCase and output it. The first word stays as-is, and each subsequent word is joined with its first letter capitalized.
Constraints
1 ≤ length of the string ≤ 100, underscores never appear at the start, at the end, or consecutively
Input example 1
hello_worldOutput example 1
helloWorldInput example 2
my_variable_nameOutput example 2
myVariableNameWhat you'll train
Specify the output
What you get
How to ask the AI
Clearly tell the AI the conversion rule: keep the first word as-is, and only capitalize the first letter of each subsequent word before joining them.
If you ask vaguelyCapitalizing even the first word, producing HelloWorld instead of helloWorld.
あなたのコード
プレビュー
AIレビュー(プロンプト練習)
コードはChatGPTやClaudeに出させたものを貼って構いません。
ここでの本番は「次にAIへ出す指示」です。評価軸は1つだけ見て、弱点・指示の穴・改善例を返します。
テストに落ちていてもレビューできます。落ちた理由と、指示に足りなかった情報を結びつけます。