Seriously ? The only build/library ecosystem that I hate more than C++ is javascript/node - it has all the same problems (a bunch of competing and incompatible standards/tools/patterns that do the same thing) but lower quality because of so much noise from low barriers to entry (hey at least you need to get C++ to compile on one compiler - that's something).
In the context of IoT applications, the typical application is either a dashboard web page or a HTTP web service - hosted on the device in both cases - serving sensor information to whoever requests it.
Both cases are easily implemented using Javascript on Firefox OS [1].
In contrast, a C(++) application would let you read the GPIO states. But all the HTTP stuff still needs to be implemented. What's a good way to do that? I know C(++), Python and Java. I might select one of these. Can I use Node.js and interface with the C(C++) code? I don't really know.
I think such questions inhibit devs who have not done any/much backend programming from getting into the IoT field at all. Firefox OS solves that problem by exposing low level system interfaces via client-side JS.
As for the larger topic of javascript vs C(++) ecosystem, I can't say much because I'm not that familiar with server side javascript.