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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.