4
It all depends on what you really are trying to do. If you are trying to alter an existing block template then you will need to use template override functionality. Or you could be needing to create your own custom block. In that case create your custom block and add your javascript. All depends on what you are trying to do...
Hope this helps,
Quest