Related questions
Question 45 - AD0-E711 discussion
A JavaScript library, made by a front-end developer, needs to be connected to a single custom page.
A method (rom this library must also be called to initialize it. The decision is made to add this JavaScript snippet directly to the PHTML page template.
Which function should be used to complete this task?
A.
Use the "require" function. because it is used to run the code immediately.
B.
Use a Text/x-magento-init" script block, and then put the initialization JavaScript snippet into It.
C.
Use the "define" function, because it is used to define modules for further usage.
Your answer:
0 comments
Sorted by
Leave a comment first