12. Native Extensibility

JavaScript is a simple yet powerful language. The JavaScript engine in Windows offers the performance needed for developers to create highly responsive Windows Store apps. For many tasks in a Windows Store app, JavaScript is the only language you’ll need. However, there are times when JavaScript is not the right tool for the job. Fortunately, Windows allows JavaScript programs to efficiently and easily work with code written in C or C++. Why would you want to do this? Typically, you would do so for one or more of the following reasons:

• You have existing C++ code that you want to access from your app that is impractical or impossible to port to JavaScript.

• You need to access Windows capabilities that are not exposed ...

Get Building Windows 8 Apps with JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.