it's no different than any other CF code.
you can do:
<script type="text/javascript">
var myVariable = "#myObj.foo()#";
</script>
(assuming the foo() method returns a string... and that the
code is within <cfoutput> blocks)
but whether it's a CFC or any other CF code, you still have
the client side (JS) / server side (CF) issues.