← Lessons

Japanese Particles: を・に・から・で

を — Marking the Object

を marks the thing being acted on. In "#buttonに .activeを 追加して", it is .active that gets added — を tells you which noun is the object, no matter where it sits in the sentence.

Why teach particles through code

A learner meeting Japanese particles usually gets sentences about people and places. Here you get commands you also run, which buys two things. First, the meaning is unambiguous — "add .active to #button" has exactly one reading, so a wrong particle is not a matter of nuance; the sentence describes a different operation. Second, the English is right there: the same command renders in both languages, so a particle’s job can be pointed at directly instead of described abstractly.

The core insight this unit is built to deliver: English marks roles with word order and prepositions; Japanese marks them with particles. Once you internalise that the particle travels with its noun regardless of position, most placement confusion dissolves.

The four particles these lessons drill — the only four the engine marks.
ParticleRoleRough EnglishAttaches
patient (object)the direct objectafter the noun
destinationto / into / ontoafter the noun
からsourcefromafter the noun
instrumentwith / by means ofafter the noun

#buttonに .activeを 追加して

= add .active to #button

#buttonに
.activeを
追加して
DEST
PAT
VERB
to #button
.active
add (imperative)

#buttonから .activeを 削除して

= remove .active from #button

#buttonから
.activeを
削除して
SRC
PAT
VERB
from #button
.active
remove (imperative)

#menuに .activeを 切り替えて

= toggle .active on #menu

#menuに
.activeを
切り替えて
DEST
PAT
VERB
on #menu
.active
toggle (imperative)
In all three, .active is the thing being acted on and takes を every time — even though the English preposition changes (to / from / on) and the verb changes. を is stable because the role is stable.

Choose the correct particle. Aim for 8 out of 10.

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.