JavaScript Concepts To Learn Before Building LWC | Lightning Web Component Part 3
ฝัง
- เผยแพร่เมื่อ 19 มี.ค. 2020
- In this tutorial, you will learn the JavaScript concepts that are required to play with the lightning web component. I am covering the following topics in this session
1. null vs undefined
2. var, let and const
3. Arrow function
4. Why Avoid mutable method like push(), pop(), splice()
5. Spread operator
6. Destructuring
7. String Interpolation
8. Modules import and export
9. Promise, async and await
10. Query selector
11. Fetch API
12. Array helper function (each, map, filter, find, every, some)
These concepts are very helpful in Lightning Web Components
LINKS USED IN THIS VIDEO
======================
LWC Playground - developer.salesforce.com/docs...
GITHUB CODE - gist.github.com/karkranikhil/...
FOR COOL STUFF OF LIGHTNING WEB COMPONENT
salesforcetroop.com/
FOLLOW ME -
FACEBOOK - / salesforcetroop
LINKEDIN - / salesforce-troop
TWITTER - @karkra_nikhil
This is especially for all the students and IT professional who wants to make their career in Salesforce.
PLEASE DO LIKE, SHARE AND SUBSCRIBE THIS VIDEO WITH ALL YOUR STUDENT NETWORK, IT NETWORK AND SALESFORCE NETWORK.
Let everyone learn Salesforce and become a part of our #Ohana.
Great content! I especially encountered the undefined/null issue when starting out with LWC
Awsome content, easy to follow and you cover some important topics
Thank you for this overview
Able to understand easily..Thank You Nikhil.
most useful video! Thank you for the video
Thanks for the great lesson
Hi Nikhil,
Content of your videos is very good and well managed.
Very helpful
thank you!
must watch video, to build good core js concepts
Hey Nikhil, Good content, I have viewed this 1.5x spead.
Hey Nikhil thank you for the wonderful session.
BUt I;m not able to see playground tab in component-library, how to get that??
Awesome vides BTW Nikhil.
If you don't mind can you share ppt?
Is there any particular scenario where we have to use reduce and there is no alternative or reduce is the best arrayemthod to use and using others will become complicated
Reduce method always rescues us when we have to Flatten the nested object or grouping of the same data in an array/object.
how do we get play ground option
Could you please let me know how to slice using the spread operator ?
We generally not prefer to combine slice with a spread. Because slice itself generates the new copy without changing the existing copy. We only avoid the splice method.
The best approach to remove the element from array is use filter or map
hi @salesforce troop,, i am just starting with lightning part.. and just wanted to know whether i should learn LWC or Aura??also want to know with job view point also which should i choose? and if LWC then could i be able to build same functionality which can be done by aura?
Go with lwc 98% usecase you can cover with lwc. That's the future
@@salesforcetroop thankyou 😇
Hi Nikhil, Can we add object to array using spread operator ?
const x = []
const y ={"name" :"nikhil"}
const z =[{...y}]
Hello Sir, I am new to salesforce and have no knowledge of javascript. I am trying to learn aura but finding it extremely difficult. So i have 2 questions:
1) will this video of yours be enough to learn javascript?
2) should i directly go for lwc rather than aura because anyways i have to start from scratch?
I would really appreciate if you could clear this doubt.
Thank you in advance
It's enough to get started with lwc.... JavaScript is very big and lwc need fundamental knowledge. I would recommend you to learn lwc directly because all new projects are using lwc. Only maintenance project is using aura.
Very Helpful Content. Thanks! May I know where can I find the document?
Which Document ?
hi sir,i have a doubt i don't know anything about javascript so is it ok to just learn from this playlist or do need i to go for your other playlist which is javascript for certification?
If you want to learn JS for lwc this video is enough but if you are targeting the JS certification then go for
th-cam.com/play/PLSWzWO4OqYAqQ8i16aIMakTW7InVuMTZF.html
can I have these ppts
Can anybody post the link of this playlist?I am unable to find part 1 and part 2
Thanks in advance
th-cam.com/play/PLSWzWO4OqYAoXiLpNOYcctXdoAwcxJynH.html
@@salesforcetroop Thank you :)
Heloo sir how to purchase your udemy lwc course is there some link then share
Hi sir,
The usage of spread operator for obj 4 does not seem to work and getting error like declaration or statement expected.....
the gthub src doesn't have the obj4 syntax as well....could you please put the syntax here or update the GitHub repository sir.
Regards,
Siddhartha
Can you show me your code on which Object spread is not working?
Combining Objects
let obj1 = {"name":"Salesforce","age":23}
let obj2 = {"name":"troop","age":21}
let obj3 = {...obj1, ...obj2}
In this example, obj2 will override the obj1 because the key's names are the same.
Hi Can you please share the PPT Copy
Sorry, I can't you can ask me if you have any doubt.
now playground is retired where to practise