French grammar
The word order in French is subject-verb-object. In the sentence Je mange le gâteau (I eat the cake), je (I) is the subject and le gâteau (the cake) is the object. However, if the object is a pronoun, it goes before the verb. If le gâteau is replaced by le (it), the sentence becomes Je le mange (I eat it).