How can I determine which javascript engine, rhino or nashorn is running my code?
<p>There are several questions how to determine the javascript engine in browser.
I have to write javascript code that has to run on rhino and nashorn. </p>

<p>How can I determine if my code is running on rhino or nashorn? Are there typcial functions, variables, constants where you can determine the engine?</p>