VRML both had node definitions and a scripting part, it's not just a 3D file format in the sense that it's not just describing 3d meshes but also how to interact with it.
But I know today A-Frame has full access to JavaScript, DOM APIs, three.js, and Web so it's looking more towards building full stateful applications.