Common coding features The following features are common to all of the project templates: Each JavaScript file wraps code in a self-executing anonymous function, as follows: (function () { // . . . })(); Members added inside the anonymous function are private, but you can make them public using the WinJS.Namespace.define function. The use of the anonymous function changes the way you need to write
![JavaScript project templates for Windows Runtime apps - Windows app development](https://cdn-ak-scissors.b.st-hatena.com/image/square/d6e4cb632c7025e9f5e05fd314fbf6dcd6144e8d/height=288;version=1;width=512/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fmedia%2Fopen-graph-image.png)