Passing a string from Javascript to C#

Is it possible to tell a C# script to get.Component (a javascript) and then perform a function depending on a string's value from the javascript? I understand that the javascript would have to compile first, thus putting it in the correct place but is there anything else I would have to consider?

No, you've pretty much got it - you put it in an earlier compilation pass folder (plugins/standard assets) and it should just work as if it were c# itself