Japanese Particles: を・に・から・で
を vs に — The Core Contrast
The particle learners confuse most. Both appear in the same command: "#buttonに .activeを 追加" has one of each. Drills mix them so the choice depends on the role, not on memorised word order. `set` is the check: in ":countを 10に 設定" the variable that changes takes を and the value it becomes takes に, just as "set :count to 10" puts "to" before 10.
This is the confusion that matters. Both particles appear in nearly every two-argument command — the same sentence carries one of each.
#buttonに .activeを 追加
= add .active to #button
#buttonに .activeを 追加
= add .active to #button
One sentence, both particles: を marks what moves (.active), に marks where it ends up (#button). The choice depends on the role each noun plays, never on where it sits.
:countを 10に 設定
= set :count to 10
Drills mix を and に so the choice depends on the role. Aim for 75%.
You're working through this as a guest. Your answers are saved on this device only, for 7 days. Create a free account and we'll add them to your progress.