Which of the following will add an external JavaScript file to a Magento page?

  • <reference name=”head”> <action method=”addJs”><script>folder/file.js</script></action> </reference>
  • <action method=”addJs”> <script>http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js</script> </action>
  • <action method=”Jsadd”> <script>http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js</script>
  • <action method=”addJs”>http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js</action>