Skip to main content
Using the Windows Runtime in JavaScript

When you write a Universal Windows Platform (UWP) app, you can use Windows Runtime classes, methods, and properties in much the same way that you would use native JavaScript objects, methods, and properties. This topic provides introductory information and links to topics that explain the basic concepts of using Windows Runtime APIs in JavaScript, including an explanation of how Windows Runtime types are represented, how to use asynchronous Windows Runtime methods, and how to listen to and handle Windows Runtime events.

You can find JavaScript reference documentation at JavaScript Language Reference.


Windows Runtime features are not available for apps that run in Internet Explorer.

For reference documentation, see Windows Runtime Reference. Code examples are available in JavaScript and also in C++, C#, and Visual Basic.

For instructions and guidelines for writing Windows Runtime components that can be consumed in JavaScript, see Creating Windows Runtime Components.

Casing conventions for Windows Runtime features in JavaScript differ slightly from those for other languages:

  • Namespaces and classes are in Pascal case:

  • Members of classes, including methods and properties, and members of structures and enumerations, are in camel case:

  • Event names are in lower case: