Which function shou...
 
Notifications
Clear all

Which function should be used to complete this task?

1 Posts
1 Users
0 Likes
81 Views
(@castilogonzalo)
Posts: 663
Noble Member
Topic starter
 

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.

Show Answer Hide Answer

Suggested Answer: B
 
Posted : 29/11/2022 10:53 am
Topic Tags

Latest Adobe AD0-E711 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: