I just started playing around with Windows Dev and please pardon me if this issue does not seem logical or legit to you.
I am trying these Chakra Host samples on Microsoft GitHub and when input js cond like console.log or alert, I get error like 'console' is undefined. Am I missing something obvious. I tried looking up but unfortunately could not find the relevant docs or code sample.

The
consoleis a web browser (and Node) feature. It doesn't exist within JavaScript. So, you need to add it (or something similar).There's an example in the Win32 Edge/Chakra host code on Github that demonstrates how to add a callback function to the global namespace.
Example callback for
EchoYou should be able to do something similar. You can also expose existing Windows runtime namespaces to Chakra.