Is Harry Potter written for children?

So this is kinda random, but I had never seen Harry Potter or read the book but it sounded like the kind of thing I'd be into so I started reading the books. The problem is... they seem kinda childish? I've only read the first two so far and I found them cute but it wasn't at all what I was expecting. Do they all remain this easy and child-friendly? I guess I just remember when I was little seeing one scene from one of the movies and it scaring me so I thought they'd be more for older kids. Has anyone read them as an adult and enjoyed them?
Is Harry Potter written for children?
Add Opinion