Magento
M70-301 · Question #23
You want to add the file "somescript.js" in a template. The JS-file is in the folder "root: js/lib". Which piece of code should you use?
The correct answer is C. $this->getJsUrl(`lib/somescript.js'). See the full explanation below for the reasoning.
Question
You want to add the file "somescript.js" in a template. The JS-file is in the folder "root: js/lib". Which piece of code should you use?
Options
- A$this->getItemurl(`lib/somescript.js')
- B$this->getskinurl(`lib/somescript.js')
- C$this->getJsUrl(`lib/somescript.js')
- D$this->getFileurl(`lib/somescript.js')
- E$this->getLibUrl(`lib/somescript.js')
How the community answered
(30 responses)- B13% (4)
- C73% (22)
- D3% (1)
- E10% (3)
Community Discussion
No community discussion yet for this question.