UNDER CONSTRUCTION This site is being rebuilt for the current LokaScript release. Lessons, drills and example sentences may change while we work.
← Lessons

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を
追加
DEST
PAT
VERB
to #button
.active
add (command)

#buttonに .activeを 追加

= add .active to #button

#buttonに
.activeを
追加
DEST
PAT
VERB
to #button
.active
add (command)

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

The check case. :count is the thing that changes, so it takes を; 10 is what it becomes, so it takes に — the same word English marks with "to". The particle follows what each noun does in the sentence: "#buttonに" is a place and "10に" is a value, and に marks both as where the action ends up.

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.