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.
| Particle | Role | Rough English | Attaches |
|---|---|---|---|
| を | patient (object) | the direct object | after the noun |
| に | destination | to / into / onto | after the noun |
| から | source | from | after the noun |
| で | instrument | with / by means of | after the noun |
#buttonに .activeを 追加して
= add .active to #button
#buttonから .activeを 削除して
= remove .active from #button
#menuに .activeを 切り替えて
= toggle .active on #menu
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.