I don't know if 'passing' would be the best word, you'd just be print()'ing your php variables into javascript like this:
<script language="javascript">
var someVar = <?php echo $phpvar ?>;
document.write(someVar);
</script>
the php runs on the server-side and prints that javascript to the browser. So you can't directly pass them but you can get values in there.