Questions & Answers about När jag var barn brukade vi alltid gå till skolan tillsammans.
Yes, när can mean when in a question, but here it is not asking a question. It introduces a time clause:
- När jag var barn = When I was a child
So in this sentence, när is a subordinating conjunction meaning when.
In Swedish, after vara (to be), words for roles, identities, and life stages often appear without an article.
So:
- jag var barn = I was a child
- hon är läkare = she is a doctor
- han är student = he is a student
Using ett here is usually less natural in ordinary Swedish. Jag var ett barn is possible, but it sounds more emphatic, contrastive, or literary—more like I was a child in the sense of I was only a child.