[Help!] The differences between Cocos2d-html5 and Cocos2d-x

I know that Cocos2d-x is writen in c++ while Cocos2d-html5 is writen in js.
And what others? Both the advantages and the shortcomings.
I have no idear about take which engine to devolp the new game.
Any idears will be grateful.

By the way, what is the IDE for the java script?

Hi,Alt air.
1,If you use Cocos2d-html5 to devolp your game, the game can run on web browser,and pack to android/ios app with javascript binding.
2,The IDE for the java script ,suggest:WebStorm