LWC Bootcamp Day 13 | Fetch API | JS Debug Tips
ฝัง
- เผยแพร่เมื่อ 16 ส.ค. 2023
- 𝐒𝐞𝐬𝐬𝐢𝐨𝐧 𝐓𝐫𝐚𝐜𝐤𝐞𝐫 - shorturl.at/iqGP2
This Video Covers
👉🏼Fetch API
👉🏼 JS Debug
API discussed in Video -
👉 API to get Random Users - reqres.in/api/users
👉 API to get CAT Images - api.thecatapi.com/v1/images/s...
👉 API for Exchange Rate - rest.coinapi.io/v1/exchangera...
#fetchapi #debugtips #import #export #settimeout #setinterval #customevents #collections #map #salesforce #lightning #development #lwc #jsoverview #lighting #salesforcelighting #salesforcetraining #lwcbasics #lwcadvanced #salesforcedeveloper #developer #ankitjain #techjourneywithankit #studysalesforce #lwc #aura #lightningwebcomponent #ankitjain #lwcbootcamp #arrowfunction #callbackfunction
Hi Ankit Sir, your way of explanation is very clear. Could you please make videos on CPQ as well?
Yes, sure
amazing session. Thank you Ankit🙏
Glad you liked it
"Thank you so much Ankit, this tutorial was incredibly helpful! I've been struggling to grasp the intricacies of the Fetch API, but your explanation made it much clearer. Also, those JavaScript debugging tips were a game-changer for me. I never realized how powerful console.log() could be when used strategically. Thanks a ton for sharing your expertise!"
You're very welcome!
Hi Ankit
In the second Integration I tried to set Time interval so that page gets refreshed at a particular time interval so that it continuously generate images. I am getting an exception:
Uncaught SyntaxError: missing ] after element list9 script.js:11:9note: [ opened at line 11, column 1
can you suggest what is the issue here?
I used below line of code to set interval
setInterval(randomCatImages(),1000);
Issue is resolved by using
I have wrapped callback fx using arrow fx:
setInterval(()=>randomCatImages(),1000);
Great
can i cretae remote site are named credential for this?
Yes you can
Sir, I think you have missed covering some array methods - some, every, reduce?
Will upload soon