using innerHTML to run a script
I have a script in the head of the document with the following line:
and I want it to be used to run function foo() in the body:
but it doesn't write anything in console. what is the problem?