This is the 9753rd most frequent Swedish word.
godis
Candy or sweets.
Here, 'godis' refers to candy and is used in the context of something enjoyable for children.
Barnen älskar att äta godis på helgen.
The children love eating candy on the weekend.
In this sentence, 'godis' means candy or sweet treats, and it's used as the object of the action 'bought'.
Jag köpte lite godis från affären.
I bought some candy from the store.
In this final example, 'godis' points to candy generally, and the sentence advises moderation in its consumption.