LWC interview question:
1. What are decorators in LWC? Name them.
2. Why do we use @api decorators?
3. How to get record id and object name in lwc?
4. What are the ways to call the apex method in lwc?
5. Why do we use $ in lwc component?
6. How we can use any javascript and css file in lwc?
7. How many times wire service call in lwc component?
8. What is a connected callback?
9. What is the difference between a connected callback and rendered callback?
10. Can we embed an aura component inside an LWC component and vice-versa?
11. How we can pass data from parent to child in lwc component?
12. How to pass data from child to parent in lwc?
13. What are targets in LWC? Name them.
14. What is the Property tag in LWC component?
15. Do we have custom event in LWC? Write its syntax.
16. What are loadScript and loadStyle in LWC?
17. How to create a constructor in lwc?
18. How you can query a DOM element in LWC?
19. What are reactive properties?
20. What type of data binding do we have in LWC?