The trend has been away from this as programming has gotten more difficult and the general decline in resources for developing and updating school curricula.
What's the equivalent nowadays? Windows doesn't really come with any programming environment. There's no standard for those math books to write towards. Yeah, there's plenty of free compilers for any language, but the funnel from even knowing they exist, to having a reason to get one, then finding it, and downloading and installing, gets pretty lengthy and technical for your average seventh-grader or whatever.
Heck, I would argue that TI calculator BASIC is the closest thing we have to a universally available development environment for secondary students today.
The real problem is the growth of phones and tablets as preferred client devices; while the JS interpreter is still there, it becomes a challenge to enter and run the code.