 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 like 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 answer so you can find that in the telegram channel and that telegram channel link is actually available in the description of this video. Okay. So today also like 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. Right. So moving on to the next like first question that that we have. Okay. So first and foremost question will be like what is LWC. Okay. So some sometimes like 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 Salesforce as well. Okay. And a quick component development because developer has to use on the 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 a 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. Okay. So moving on to the next question, lightning web component files. So there are four files and while explaining each file, you need to explain the uses as well. Like why to implement dot HTML, why to implement dot JS, why to implement dot CSS and why to implement this dot JS meta dot XML file. Right. So all these files are like useful and part of lightning web components. 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 five points are listed related to that related to that. So with the help of these five points, you can prepare your answer. Right. So in fourth 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 lightening web component, so that it can be used 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. Okay, so let's see what is the next question. So yeah, next question is, can Aura component contains lightning web components answer will be yes. This you should know, then can lightning web component contain Aura components or 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. Okay, 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'll be using kebab case. So kebab case, here you can see it is written like C hyphen bigot. Right. So this is basically kebab case. Okay, 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're 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 hyphen my hyphen 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? Okay, 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 for her source is from where I can go to the first video of the boot camp. So boot camp session tracker is available in the description. I am I'm going to share the link here once again, so that you can have it. So I'm pasting it in the chat. So this is the session tracker for a 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 address tracks, 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 components. 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 basis 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 Apex class, right? So aura enabled annotation will be exposing the method to the lightning components and caches the return the list on the client. So this is also important to know. And it is important question that has been 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 Apex. 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 apex. 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 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 components? So various tools are available. You can use them like chainset and gears at Copado. Then communicate with events in LWC. So we have even so like you can dispatch events, right? So that you can pass some data from one component to another. Then lightning master services there. So you can prepare it. So lightning, like events and lightning master service, these are also important and pops up model, right? So these three things you need to remember and interview. Then where we can use lightning web components. 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'm going to share telegram channel link where you can find these. So I'm pasting the telegram channel link in the chat. So if you click, you can subscribe that 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'm 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 a parallel along with this Salesforce only studio bootcamp is already going on. So like through that, you can learn about only studio. And other than that, I'm planning to have a 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 it if then 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'll be sharing some gratitude. Okay, so I'm just 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.