If you want to build your career as Salesforce Associate, Admin, Developer, Consultant, Business Analyst, Quality Analyst or in Sales Career, Service Careers, Marketing Careers in Salesforce Ecosystem then this is a Unique Opportunity for Everyone!!!
No matter whether you are a Student, Fresher, Non-IT Professional or IT Professional. Everyone can learn Salesforce!
This bootcamp will help you to prepare for Associate Cert, Admin Cert, PD1 Cert, App Builder Cert and BA Cert.
All you need is: - Laptop - Internet - Daily 1.5 Hours (4 Days a week) - Follow Sanjay Gupta Tech School on LinkedIn - Trust in Sanjay Gupta
You need to forget about? - Money - Confusion - Fraud - False Promises
Timeline: Total Weeks : 20 Total Hours : 80-100 When : Daily 1.5 hour (Monday - Thursday) Start Date : 23 January, 2023 Time: 8.30 - 10 PM IST
Hello everyone, I am Sanjay Gupta.
I welcome you back on Sanjay Gupta Tech School.
So this is like day 99 of the Salesforce Learning Bootcamp and I think this will be the last
session because in today's session I will be discussing few LWC related interview question
and answers.
So in last few days we are having some mock interviews.
So for development and LWC, there are lots of questions so those we cannot cover in one
video.
So that's why I just shared the PDF in the telegram channel already.
So if you have not received those PDF for all interview question and answers, you can
find that in the telegram channel and that telegram channel link is actually available
in the description of this video.
So today also I will be discussing few questions with you along with the answers.
It is basically related to LWC.
So I will highlight some important question that is being asked in the interview and LWC
is the must have skills if you are applying for a developer job.
So moving on to the next like first question that we have.
So first and foremost question will be like what is LWC?
So sometimes you need to compare LWC with lightning component which is like Aura components.
So you can just define like LWC is lightning web component and it is based on W3C's web
development standards and it supports the part of web component that works in browser
and add parts supported by sales force as well.
And a quick component development because developer has to use only HTML, CSS and Javascript
for front end development and if they want to interact with the S objects then only they
will be using Apex.
So it is simpler as compared to Aura because Aura is basically lightning Aura components
or maybe lightning components are basically built on top of Aura framework so their dependency
is available but in LWC we can create lightweight components.
So moving on to the next question lightning web component files so there are total 4 files
and while explaining each file you need to explain the uses as well like why to implement
.html, why to implement .js, why to implement .css and why to implement this .jsmeta.xml
file right.
So all these files are like useful and part of lightning web component so proper explanation
will be coming in the upcoming questions so next is like what is LWC module it is very
much important and in most of the Javascript file we have this LWC module imported right
so here 5 points are listed related to that so with the help of these 5 points you can
prepare your answer right.
So in 4th point you can see the example like we import lightning element functionality
so lightning element is a functionality we are importing it through LWC so this LWC which
is written in single quotes it is basically a module right.
So this is important question that you need to prepare now if you move to the next question
so this is the use of XML file like how we can use it and why we use it so if you want
to expose your lightning web component so that it can be used anywhere in the org so
for that like is exposed we need to set as true then in the targets we need to set the
different target like home page, record page or it can be app page or screen flow or experience
site so different different targets we have so whatever target you will be mentioning
in this XML file accordingly your components will be visible for that so whatever target
you are specifying there only it will be available ok so let's see what is the next question
so yeah next question is can aura component contains lightning web component so answer
will be yes this you should know then can lightning web component contain aura component
so no because lightning web component is built on like with the help of web standards so
it cannot contain aura component because lightning web component doesn't know about aura so can
a lightning web component call another lightning web component so it is possible nesting can
be done parent child this is also important like camel case versus kebab case ok so whenever
we create any component so we need to provide camel case naming convention but when we create
a component and we want to use that component into another component so in that case we
will be using kebab case so kebab case here you can see it is written like c-vigit right
so this is basically kebab case ok so you need to use hyphen and I think there is one
more example in the next slide so here you can see if you are creating a component named
as my component so this is the camel case my is in small and c is capital and rest is
small and then we have c-my-component so this is kebab case right so this notation you need
to use this is supported by lightning web component so this is important to know as
per interview now we have three decorators so you should know like what all decorators
we have and what is the use of those decorators ok so at the rate api track and wire so these
are three decorators so one by one let's discuss and there is one question from Farha so from
where I can go to the first video of the bootcamp so bootcamp session tracker is available
in the description I am going to share the link here once again so that you can have
it so I am pasting it in the chat so this is the session tracker Farha you can follow
it so what is the use of api decorator so api basically makes a field of property as
public html markup can access the components public property right and all public properties
are reactive reactive means the framework observes the property for change so when property
changes value then the framework reacts and renders the component right so this is the
correct answer for this at the rate api decorator and for example what you can say like if we
have any property declared as public and we are placing our component on record page so
from that record page if we have any like record id record id is a property if it is
declared as public so it can receive the value automatically right so this way you can relate
an example as well then track it observe changes to the properties of an object or to the element
of an array and framework render the component when changes occurs so it is basically used
with objects and array only for tracking the changes earlier it is used to declare
any property as private but right now if you don't use at the rate track so it will be
automatically private limited to that particular component still like if you want to expose
any property to another component so in one lightning web component if you have created
a property if you want to use that property to another lightning component if you are
implementing parent child relationship so in that case also you need to declare that
property as at the rate api right because at the rate api will make it public now third
one is at the rate wire so basically if you want to bind your lightning web component
with your org like you want to receive some data you want to send some data so for that
you can use at the rate wire decorator right then in html we can do conditional rendering
as well right so for conditional rendering what we can do this is the syntax that you
can follow and next is like rendering list so through for each you can implement the
loop so these things you need to know like we can apply conditional rendering we can
apply loop in html file right then how to write expression in component so this is also
important to know right so above you can see html and below you can see javascript
then how to call controller function in component so this is also important to know so we just
need to use curly braces and the name of the method and method we need to define in the
javascript then aura enabled so if you want to call any apix class right so aura enabled
annotation will be exposing the method to the lightning components and caches the returned
list on the client so this is also important to know and it is important question that
is being asked in the interview then life cycle hook so you need to know the sequence
like how they call what is the meaning right this is the life cycle flow that you can remember
right so it is written in keeping in the mind like we have parent child relationship between
two components so you can explain it right then what are three ways to work with salesforce
data so there are three ways lightning data service so these are base lightning component
lightning record form lightning record view form lightning record edit form then we have
lightning data service wire adapters and functions so predefined modules we can import and then
third one is apix so like these we already discussed in the session so you can go through
then what is lightning data service it is explained here so you need to prepare it and
it is also like important question because through lightning data service we don't need
to manage the apix and this is a table comparison table I think with the help of this table
you will be able to relate the differences so we have lightning record form lightning
record view form lightning record edit form so all the comparisons are available here
this is also important then wire service important again so you need to prepare it
as well then syntax so you need to understand the syntax like what is the meaning of that
particular parameter that we are using right so here in this slide you will get to know
each and everything right so I think it is also important and with this summary you will
be able to understand okay then why to import references to Salesforce object and field so
prepare this as well important so all these questions which are available in this slide
this PDF all are important and if you prepare these so you will be like clearing your developer
interview so this is like how to get current record ID so you can create a property named
as record ID and decorate it with at the rate API decorator how can we deploy lightning
web component so where various tools are available you can use them like chain set and gear set
copado then communicate with events in LWC so we have event so like you can dispatch
events right so that you can pass some data from one component to another then lightning
message service is there so you can prepare it so lightning like events and lightning
message service these are also important and PubSub model right so these three things you
need to remember in interview then where we can use lightning web component so this is
the list that you can prepare right so these were some important question that I already
shared with you so if you go through my telegram channel so in the telegram channel these are
already available so once again I am going to share telegram channel link where you can
find these so I am pasting the telegram channel link in the chat so if you click you can subscribe
the channel and there you will find all the PDF it is like I shared four PDF one related
to admin one related to flows one related to developer questions and one related to
LWC which right now I am sharing okay so I think with this with these 99 sessions you
will be able to prepare yourself for interview right so first learn everything in detail
and then go with the interview questions so everything is with you right so I think
with these sessions you will be able to prepare yourself for interview so do let me know if
you need something else like parallelly along with this Salesforce Omni studio bootcamp
is already going on so like through that you can learn about Omni studio and other than
that I am planning to have few more bootcamps those will be specific to Salesforce so that
I will be starting from next month right so I think if you are a self learner so all these
sessions will be helping you because we have covered everything in detail and all the exercises
are with you right so I shared all the knowledge with you and I am happy like with this knowledge
you will be able to prepare yourself for jobs so this bootcamp will be helping freshers
intermediate even like those who are working on advanced for like for them Omni studio will be
helpful and if they doesn't know about flows recent updates so that will be helpful integration
related videos QA related videos right so all those sessions will be helpful for them okay
so so this is all from my side and I will be having one more session on maybe Saturday or
Sunday where I will be announcing a giveaway right so do join and we will be sharing some
gratitude okay so I am just ending this session here only because I already shared the content
with you okay so thank you for joining all the sessions and like keep waiting for day 100
because there will be some announcement for few folks those who can get benefit from that so it
will be helpful for them thank you everyone