That's not the point. There is a large class of desktop apps that could be programmed in Javascript also. The point is - why would any developer or any development studio bother with investing time and effort in learning Javascript for the iPhone, when you can just invest the time in learning how to use C++?
Using Javascript will give you a short-term boost, but at a long term cost. And at some point, when you do switch to the native API, you need to restart learning.
The difference in using C++ and javascript on the iphone is pretty small - they have similar syntax and organisation. C++/Obj-C actually has some advantages in terms of speed, because of the much larger availability of sample code and tools to work with it.
And of course, there is the native vs intepreted advantage of C++ code.
Also, I'm not sure where you got the idea that you can write iPhone apps in C++, you can't, the API is almost entirely Objective-C and some straight C (though there may be a few C++ APIs)
Using Javascript will give you a short-term boost, but at a long term cost. And at some point, when you do switch to the native API, you need to restart learning.
The difference in using C++ and javascript on the iphone is pretty small - they have similar syntax and organisation. C++/Obj-C actually has some advantages in terms of speed, because of the much larger availability of sample code and tools to work with it.
And of course, there is the native vs intepreted advantage of C++ code.