Where is the correct place to insert a JavaScript?

C) Both the HEAD section and the BODY section are correct

That said, the recommended place is the head.