Marcus Geduld's After Effects Expressions, published by Focal Press in 2008, remains the most thorough book-length treatment of the subject. It builds from basic syntax through JavaScript essentials to physical simulations, assuming no prior programming knowledge.
Dated in places, but the conceptual foundation holds. For students, expressions shift the practice from manual keyframing to rule-based animation. This book makes that transition accessible.