I'm trying to call a function in a .js file from the php page where I'm displaying it!

What I want to do is something like this:

.php file:
> ...
> function testFunc(){
> ...