No, Javascript is not supported as a language for Windows Runtime Components
"By using the Windows Runtime, you can create components (essentially DLLs)
in C++, C#, or Visual Basic," from the official
documentation .
What you can do, if you want to execute your JS code in your UWP/WPF app is to load it in a WebView and execute the code there. The resource
from @Muipo's response is pretty good at illustrating how to do that and can show you can roll your own Bridge if you don't want to use a 3rd Party