Тёмный

Callback and arrow function introduction in array 

Hitesh Choudhary
Подписаться 946 тыс.
Просмотров 74 тыс.
50% 1

Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
All the learning resources such as code files, documentations, articles and community discussions are available on our website:
chaicode.com/
You can find our discord link, github link etc on the above website.
Twitter/X link: x.com/hiteshdo...
Discord link: hitesh.ai/discord
Learn React with 10 projects: • Let's learn react from...
Learn Docker: • A practical guide on D...
Learn Kubernetes: • Complete Kubernetes Co...
How does a browser works: • How does a browser wor...
How nodejs works: • How node JS works | En...
Learn Redux-toolkit: • Learn Redux Toolkit in...
Learn NextJS: • Nextjs Full stack course
Learn Typescript: • Why to learn Typescript
Learn Javascript: • Welcome to new JavaScr...
Learn React Native: • React Native Mastery: ...
Learn Zustand: • React state management...
Learn Golang: • How to get started wit...

Наука

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 77   
@HiteshCodeLab
@HiteshCodeLab 4 года назад
Hope you are learning a lot, for more visit courses.learncodeonline.in/learn
@arijitchatterjee3513
@arijitchatterjee3513 4 года назад
Sir i can't see the next videos they are showing private videos. Plz help sir
@pranshuaggarwal
@pranshuaggarwal 3 года назад
Yes sir. I remember, 2 years back i started with your Javascript playlist and that made me feel afraid of this language after i watched your arrow functions video. Since that was terrible and made me feel afraid of this language. But now i thought I should give this language one more try and I can't believe, you made this new playlist so easy to understand. Each and every concept is explained so good, even a layman can understand it, I am just a programmer. Thankyou for making this online Javascript course freely available to us.
@abhinavkuruvilajoseph4093
@abhinavkuruvilajoseph4093 4 года назад
when hitesh sir dosent upload on sunday. i feel my heart crack
@Abdirizakmrashid
@Abdirizakmrashid 3 года назад
Thanks
@Ravi-oh8xz
@Ravi-oh8xz Год назад
Loved it ❤️❤️
@xesiusprime9360
@xesiusprime9360 3 года назад
another stellar vid. thanks G
@AbhishekKumar-kd7bp
@AbhishekKumar-kd7bp 4 года назад
Oo boi this nasty arrow function and callback function settle everywhere on the code!! Warning the most important topic of js
@akshaysavad7350
@akshaysavad7350 4 года назад
Not concerned with video subject.. But Indian intern need to make some app or website from scratch and in return they only get intership certificate (that if their bosses are good else forgot that also). Is this injustice ?
@VijayKumar-eq9ou
@VijayKumar-eq9ou 4 года назад
Sir pls continue this series , it's very explanatory and useful for everyone
@raghavgupta6186
@raghavgupta6186 4 года назад
Sir it is like lambda or anonymous function in Python , I understood it easily
@shahzadisairaawan5079
@shahzadisairaawan5079 3 года назад
finally understood the callback function. thank you so much sir
@MaheshKumar-qx8dy
@MaheshKumar-qx8dy 4 года назад
Best video to understand arrow function and return keyword. Thanks a lot Hitest, you made my day ;)
@somagorai8159
@somagorai8159 2 года назад
At 6:23, you wrote isEven and not isEven() and you gave the reason that we are passing by reference. Can you please explain that, thanks!
@ritish181
@ritish181 Год назад
Hey... Firstly thank you sooo much for the course @Hitesh Sir. Its really confusing 😵 sometimes , don't know if java script is tough or what.
@AsanTutorials
@AsanTutorials 3 года назад
let isEven = element => element % 2 === 0; console.log(isEven(2)); true
@aayush5474
@aayush5474 4 года назад
If you have only one input parameter you can even omit its paranthesis
@pureblood6174
@pureblood6174 3 года назад
One of the Basic Rule of programming, if it's working, don't touch it.
@mohamediburahimp7661
@mohamediburahimp7661 2 года назад
I luv Hitesh voice,,,bro I'm doing ece I'm eligible to do js?
@himanshushrivasrav6696
@himanshushrivasrav6696 4 года назад
this video i have been waiting for like 5 months before completing old js course,,, fabulous content this time version 2 is amazing
@themodestai9603
@themodestai9603 3 года назад
This thing is just like lambda expressions in java
@afamsval
@afamsval 4 года назад
I am really enjoying this series. Keep it up Sir! You are the best and I look forward seeing you one day.
@umairali2360
@umairali2360 2 года назад
is every method always return true or false???
@erranbahadurbk
@erranbahadurbk 3 года назад
If anyone is from c# its same as lamda expression!
@kamilmohammed9722
@kamilmohammed9722 3 года назад
This is not too much. Best for me. Really thanks
@abdremo
@abdremo 3 года назад
callbacks are like lambdas in kotlin... easy
@choyoncc
@choyoncc 3 года назад
What is the name of the Extension that you mention
@kuzhalmalan4703
@kuzhalmalan4703 4 года назад
Good Noon Hitesh, I am following up your videos from last week and need some clarifications on below mentioned: How can we add type of operator in the below console.log using interpolation to get group of results in single query. console.log (` // Added number is : ${add} // Subracted number is : ${sub} // Multiply number is : ${mul} // Divided number is : ${div} // Modulus number is : ${mod} // Greater number is : ${greater} // Lesser number is : ${lesser} // Equal number is : ${equal} // `); I have tried to use typeof as below and will getting result as string alone. console.log (typeof` // Added number is : ${add} // Subracted number is : ${sub} // Multiply number is : ${mul} // Divided number is : ${div} // Modulus number is : ${mod} // Greater number is : ${greater} // Lesser number is : ${lesser} // Equal number is : ${equal} // `); and also suggest to put numbers on thumbnails for identification of classes in order. Thanks!!!
@shaqranbhat1168
@shaqranbhat1168 4 года назад
We also dont need to put a parentheses around 'e' as there is only one argument and it's not a non-simple identifier. This makes it look much cleaner: """"""var result = [array].every(e => e%2 === 0); console.log(result);""""""""
@haythamkenway8343
@haythamkenway8343 4 года назад
I like this trick to check even or odd arrays: const isArrayEven = [2, 4, 6, 8].every(x => !(x & 1));
@OpinionOfX
@OpinionOfX Год назад
Ravish kumar official
@yoyocr2034
@yoyocr2034 3 года назад
similar to python for loop..
@SahilPatel-jv1fw
@SahilPatel-jv1fw 3 года назад
Array.prototype.map() expects a return value from arrow function array-callback-return i am stuck at this error
@RAKESH-nf9bi
@RAKESH-nf9bi 4 года назад
var result=[2,3,4,5].every(iseven) is not working in console of my browser
@programoftech9200
@programoftech9200 4 года назад
Present Sir Do you remember me?
@lukes5631
@lukes5631 2 года назад
I cannot express, as a new coder, how informative it is to have a complete tutorial like this. The way you progress through the knowledge with your explanations and mid-way recaps it brilliant and also showing (in a progressive manner) how to move toward and understand the new syntax. I have actually LEARNED a lot from this one video in a way that I can take that knowledge and apply it pragmatically - not just a theoretical understanding. Thank you.
@hiteshbhagwat13
@hiteshbhagwat13 2 года назад
so much confusing sir
@ankushladani496
@ankushladani496 Год назад
Thank you sir...
@kamalkumar945
@kamalkumar945 Год назад
awesome lecture
@kalyansworlld
@kalyansworlld 3 года назад
Great video Hitesh I expected more description about callback function here.
@oneclipperday1
@oneclipperday1 3 года назад
Thanks a lot
@StatusWorld-bp2pq
@StatusWorld-bp2pq 4 года назад
Bro please I beg to you help me please . Vs code ki settings karab ho gayi hai kaise usko completely uninstall karke install kare kitno bro please one video
@Amitsirdelhi
@Amitsirdelhi 3 года назад
I really love this series, way of teaching is excellent Thank you so much even i didn't learn in my hole degree, a big thanks Mr. Hitesh Choudhary
@sadique_x_
@sadique_x_ 2 года назад
insightful
@tuanphamvan655
@tuanphamvan655 3 года назад
thank you great video I understand more about callback
@ahmeddirie4860
@ahmeddirie4860 2 года назад
thanks.
@jagpreetsingh8288
@jagpreetsingh8288 4 года назад
One question- Why we are using callback if we are already getting the same result from IsEven Function? why we are using callback in var result?
@vijaynavale3919
@vijaynavale3919 4 года назад
Is actually there different scenarios we have to use callbacks in here for example when he applied every() method the isEven function get call only when every() method pass numbers as isEven element parameter then after passing function get triggers. You will see this type of scenarios in dom manipulation.where use click or submit the form then that event triggers the callBack function Remember callback is simply mean call the function later
@kishannigam1116
@kishannigam1116 3 года назад
thank you so much sir,,,,,,your concept is fabulous!!!!!!!!!!!!!!!!!!!!!!111
@devanshsolani2593
@devanshsolani2593 4 года назад
your concepts are unique. other channel do not explain these concepts
@ravibhagat6513
@ravibhagat6513 4 года назад
Your IDE And the Theme please...
@alltech-jg9hi
@alltech-jg9hi 4 года назад
had to spend 2 days on this but i understand it now thanks,
@theboxdev
@theboxdev 4 года назад
Why we are not Putting () in isEven like isEven()? However thanks for awesome tutorials
@vijaynavale3919
@vijaynavale3919 4 года назад
Is because we are passing isEven as call back so we can call it later if you pass like this isEven() then Javascript will immediately call this function we don't want like this. Again you will see this in DOM manipulation where use click and then only function runs. Hope you understood
@gajjalaharsha
@gajjalaharsha 4 года назад
Sir, is it necessary to have semicolon (;) at end of arrow function other wise will it give syntax error?
@SharukhKhan-sd7xg
@SharukhKhan-sd7xg 4 года назад
semicolon (;) are not compulsory in JS if you forgot to use ; then it will not throw an error.
@YouAndImpact
@YouAndImpact 4 года назад
Great video 👍.
@sagarghare9829
@sagarghare9829 4 года назад
Hitesh sir you are a great teacher.
@learnwithmehady4040
@learnwithmehady4040 4 года назад
very helpful tnx brother
@FuzzyAnkles
@FuzzyAnkles 3 года назад
dude youre awesome teacher!
@keshavgupta6549
@keshavgupta6549 4 года назад
Thank you bhaiya.
@IqbalAhmed-qk5ix
@IqbalAhmed-qk5ix 4 года назад
Thank u so much sir
@elpolodiablo5486
@elpolodiablo5486 4 года назад
Which theme are you using ?
@ravibhagat6513
@ravibhagat6513 4 года назад
I have the same question
@ramanshpathak9208
@ramanshpathak9208 4 года назад
It's a costum coded theme You'll not find any particular theme like this in VS Code marketplace
@ravibhagat6513
@ravibhagat6513 4 года назад
@@ramanshpathak9208 okay... Thanks for the info
@TheProverbian
@TheProverbian 4 года назад
Super simple and clean! Thank you!
@vraj3115
@vraj3115 4 года назад
#10minutesJS day 21!
@saharshnigam6526
@saharshnigam6526 4 года назад
Always on time.awesome
@sayamkoul3204
@sayamkoul3204 4 года назад
First viewer 💯
@penmaniac
@penmaniac 4 года назад
1st viewer
@vijaynavale3919
@vijaynavale3919 4 года назад
Keep going 👍
@lalitkumarmehta1721
@lalitkumarmehta1721 4 года назад
Great explanation:)
@komalmishra9863
@komalmishra9863 4 года назад
I am amazed Sir. Super awesome concepts and explanations. I am an Oracle Apps technical consultant and These days I am bit loaded with office work. But, everyday at around 9 am I still wait for this js series video. I learn and implement with you simultaneously. Seriously sir, this is super fun and super learning. I think you are giving your best. Much Thanks.
@kisan_thapa
@kisan_thapa 4 года назад
Made my day
@deekshiththanuku9866
@deekshiththanuku9866 4 года назад
How come you are making us understand javascript so easy?...Thanks to you Hitesh Bhai...😊
@ankushthakur2177
@ankushthakur2177 4 года назад
Awesome video, getting pro in JavaScript 😜😜
Далее
Fill and Filter in Array in Javascript
8:09
Просмотров 41 тыс.
Basics of functions in javascript
9:10
Просмотров 59 тыс.
Callbacks in JavaScript Explained!
14:03
Просмотров 153 тыс.
javascript callback functions tutorial
15:40
Просмотров 461 тыс.
Introduction to Array in javascript
17:50
Просмотров 62 тыс.
5 JavaScript Concepts You HAVE TO KNOW
9:38
Просмотров 1,4 млн
The Async Await Episode I Promised
12:04
Просмотров 1,1 млн
New keyword in Javascript
12:32
Просмотров 53 тыс.
Python Lambda Functions??
4:30
Просмотров 185 тыс.