Why JavaScript for Cocos Creator?

This conversation is already going on in another topic. Please participate in the discussion in that topic.

If I am not wrong about it Cocos2d-x written in c++ and it’s default version is c++ version.And most of the posts are about c++.Then why did you guys write the editor of this engine for JavaScript and trying to release C++ version ?