Ohk, If i get you exact then , you want to define Enumeration
in JavaScript?
right ?
For this case I don't think if it is done with WinJs or not on Windows Store App
,
but I have two Suggestions as my answer :
1 ) Use C#
as Runtime Component to perform This operations, by defining a function in c# and simply call it on your JavaScript.
See ,Creating a simple component in C#.
2 ) Enumerated types in JavaScript
Or See : WinJS.UI Namespace
http://207.46.99.208/pl-pl/library/windows/apps/br229782#enums_section