Frequently Asked LWC Interview Questions & Answers

  Рет қаралды 6,213

Tech Journey With Ankit

Tech Journey With Ankit

2 ай бұрын

Part 1 - • Frequently Asked LWC I...
Looking to nail your next LWC (Lightning Web Components) interview? 🚀 This video features a comprehensive list of frequently asked LWC interview questions, along with detailed explanations and examples to help you ace your interview! Whether you're a beginner or an experienced developer, this resource will help you brush up on key concepts and boost your confidence. Don't miss out on this essential guide to mastering LWC interviews - hit play now and take your skills to the next level!
#salesforce #salesforceflow #salesforceintegration #techjourneywithankit #salesforceadmin #salesforceadministrator #salesforcedevelopers #interview #lwc #lwcinterview #lwcsalesforce

Пікірлер: 37
@vitthalrakh5715
@vitthalrakh5715 26 күн бұрын
Thanks Ankit ,This is very Helpful can I get pdf for this Question and ans?
@ad123441
@ad123441 2 ай бұрын
26.51 lightning:combobox
@haribabuk5162
@haribabuk5162 2 ай бұрын
lightning combox is used to display the picklist values of an object
@TechJourneyWithAnkit
@TechJourneyWithAnkit Ай бұрын
Correct
@atulchopade9897
@atulchopade9897 2 ай бұрын
33:01 We can use render method to switch between multiple html file, however it's not a life cycle method it's protected method provided by the framework. 33:01 we can create a public property with @api recordId to get Id from if the LWC component placed on record page.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 2 ай бұрын
Yes catch is render is not a life cycle method , but we can use the protected method to do that
@NingannaKamalapure
@NingannaKamalapure 2 ай бұрын
Lightning-combobox is used to display the picklist value to ui
@TechJourneyWithAnkit
@TechJourneyWithAnkit 2 ай бұрын
Correct
@stoical_shorts1426
@stoical_shorts1426 2 ай бұрын
Q.LWC is placed on record page and you want to get the record ud of the page. How can we do it? Ans :- import {LightningElement, api} from 'lwc'; export default class example extends LightningElement{ @api recordId; connectedCallback(){ console.log ('This is the recordId of the page', this.recordId); } } Record Id : {$recordId}
@madhumohan2952
@madhumohan2952 15 күн бұрын
In Html page we just need to keep {recordId} right ? no need of $ symbol
@thalurumahendrababu
@thalurumahendrababu 2 ай бұрын
First question answer is using RenderedCallBack we can achieve it and Second question answer is Using Wire Decorator we can achieve it.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 2 ай бұрын
It's not renderedCallBack, it is render method
@deepalitiwari6561
@deepalitiwari6561 2 ай бұрын
Question asked from me - 1. How to pass data from one component to another when they are not connected 2. How to we make callouts in lwc 3 . How we go next page in lwc 4. Can we have multiple js and html files in lwc ? 5. What should be the purpose and what are the benefits of having multiple js and html files 6. Catchable= true , how it functions at the backend how it helps in fetching the data
@TechJourneyWithAnkit
@TechJourneyWithAnkit 2 ай бұрын
Few of them already covered in part 2. Remaining will cover in part 3
@saptarshidas7877
@saptarshidas7877 Ай бұрын
Hey Ankit First of all thanks for the awesome contents. I had a doubt for Wire and connectedCallback order of execution scenario how many times the console log will be printed ? Even though wire is called twice I can see its getting printed only after connectedCallback. Clarify if possible.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 25 күн бұрын
Wire be be called twice but return data only once
@pranaysawarkar7071
@pranaysawarkar7071 2 ай бұрын
hello ankit how are you i saw this video for my interview preparation in life cycle hooks you include only 5 life cycle hooks like constructor, connected callback, render callback, disconnected callback, and last one is error callback might be render is also consider as life cycle hook they are 6 might be not 5 can you please explain why you consider 5 only in ans.....!
@TechJourneyWithAnkit
@TechJourneyWithAnkit 2 ай бұрын
No, the render method in Lightning Web Components (LWC) is not technically a lifecycle hook. It's a protected method in the LightningElement class that's similar to lifecycle hooks and is used to conditionally render a template.
@pranaysawarkar7071
@pranaysawarkar7071 2 ай бұрын
But most of the people consider render as life cycle hook
@momanddaughterchannel3938
@momanddaughterchannel3938 2 ай бұрын
Render method
@ravigrover1923
@ravigrover1923 14 күн бұрын
Answer 1 : using render() method we can control which template will be visible Answer 2: In the controller of your LWC you can create a @api property with name recorded like below: @api recordId;
@TechJourneyWithAnkit
@TechJourneyWithAnkit 12 күн бұрын
Yes, correct
@luciferbhoi
@luciferbhoi 2 ай бұрын
Hi Ankit, what are your thoughts of Data cloud, it is going to be the next big thing in Salesforce ecosystem?
@TechJourneyWithAnkit
@TechJourneyWithAnkit 2 ай бұрын
Definitely it will be. Data Cloud + AI is future
@luciferbhoi
@luciferbhoi 2 ай бұрын
@@TechJourneyWithAnkit Salesforce is pushing towards CRM+AI+Data with trust. I have started learning data cloud
@lalithaprathyusha8070
@lalithaprathyusha8070 2 ай бұрын
@@TechJourneyWithAnkit Any series you will be planning on it
@haribabuk5162
@haribabuk5162 2 ай бұрын
"When will the next class be?"
@TechJourneyWithAnkit
@TechJourneyWithAnkit 2 ай бұрын
Soon
@harmeetsandhu8238
@harmeetsandhu8238 2 ай бұрын
1.Render Method 2.@api recordId
@TechJourneyWithAnkit
@TechJourneyWithAnkit Ай бұрын
Correct
@momanddaughterchannel3938
@momanddaughterchannel3938 2 ай бұрын
2. @api to get recordid
@TechJourneyWithAnkit
@TechJourneyWithAnkit 2 ай бұрын
It should be @api recordId
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 205 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 84 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 193 МЛН
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 25 МЛН
Lifecycle Hooks in LWC with Interview Questions
34:56
Force Fellow
Рет қаралды 10 М.
Part 1: Platform Events In Salesforce #salesforce  #integration #platformEvents
37:08
Senior Angular Developer Interview (theory)
41:57
WeCoded
Рет қаралды 13 М.
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 205 МЛН