is echoing javascript code from php prohibited ?

I found myself in a situation where i cant proceed unless i use this,
i read in wordpress plugin requirements “Inline JavaScript is not allowed” is this counted as inline ?

Inline JavaScript is something like below:

<a onclick="alert('inline javascript!')">Click me</a>

If you are trying to echo out a <script> tag, that shouldn’t be an issue as long as it’s done safely (i.e. don’t blindly echo out user input).