Cocos Creator uses typescript. If you want C++ then that is what Cocos2d-x is for, being either v3.17 or v4 of the engine. Cocos2d-x hasn’t been actively maintained by the Cocos team for a number of years now, since they seem to be focusing on Cocos Creator.
At this point in time I can only recommend a fork of Cocos2d-x v4, located here, which is being actively maintained.
Cocos creator use both javascript and c++ on android native. On android native it use opengl/vulkan to render. You can view document here: The Tutorial for JSB 2.0 · Cocos Creator
it’s well explained about mechanism between javascript and c++