nerdexam
Salesforce

PDII · Question #181

How can a developer efficiently incorporate multiple JavaScript libraries, such as JQuery and MomentJS, in a Lightning component?

The correct answer is D. Join multiple assets from a static resource. See the full explanation below for the reasoning.

Question

How can a developer efficiently incorporate multiple JavaScript libraries, such as JQuery and MomentJS, in a Lightning component?

Options

  • AUse JavaScript remoting and script tags
  • BUse CDNs with script attributes
  • CImplement the libraries in separate helper files
  • DJoin multiple assets from a static resource

How the community answered

(32 responses)
  • A
    6% (2)
  • B
    3% (1)
  • C
    9% (3)
  • D
    81% (26)

Community Discussion

No community discussion yet for this question.

Full PDII Practice