Saleforce Interview Questions 8

Lightning:

Q) What are lightning components?
AnsThe Lightning Component framework is a UI framework for developing web apps for mobile and desktop devices. It’s a modern framework for building single-page applications with dynamic, responsive user interfaces for Lightning Platform apps.

Q) What are Aura components?
Ans. Aura components are the self-contained and reusable units of an app. They represent a reusable section of the UI, and can range in granularity from a single line of text to an entire app.  These components are also known as the base Lightning components. You can assemble and configure components to form new components in an app. Components are rendered to produce HTML DOM elements within the browser.

Q) What are Web components?
Ans. Lightning Web Components uses core Web Components standards and provides only what’s necessary to perform well in browsers supported by Salesforce. Because it’s built on code that runs natively in browsers, Lightning Web Components is lightweight and delivers exceptional performance.

Q) Difference between Aura and Web components.

Ans.
 LWC uses core web components.
 LWC is fast and has better performance that Aura Components.
 LWC needs Salesforce DX understanding to build up web apps.
 LWC can not be configured in Devconsole, rather have Playground or configure External tools like visual studio code to program.

 Q) What are Events ?
Ans. Events are mode of communication among Aura lightning components among App or nested components.

Q) How many types of event are there?
Ans. 
Component event (communicates within the parent components) and Application event(communication of components withing application).

Q) Does lightning components follow oops concept ?
Ans. The framework provides the basic constructs of inheritance and encapsulation from object-oriented programming and applies them to presentation layer development. But, always favors composition (nested aura components). Inheritance works well when extends from base components.

Comments

Popular posts from this blog

Salesforce Q&A Part 1:

Salesforce Q&A Part 2:

Salesforce Q&A Part 7: