The <h:outputScript> tag is used to access JavaScript file in the web application. You must create a subdirectory inside the resources folder.