TypeScript with Cocos Creator. But you can use JavaScript for plug-ins and other side items. The engine itself uses C++ and is open-source.