Callback and arrow function introduction in array
Вставка
- Опубліковано 8 вер 2024
- 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...
Hope you are learning a lot, for more visit courses.learncodeonline.in/learn
Sir i can't see the next videos they are showing private videos. Plz help sir
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.
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.
Sir pls continue this series , it's very explanatory and useful for everyone
this video i have been waiting for like 5 months before completing old js course,,, fabulous content this time version 2 is amazing
finally understood the callback function. thank you so much sir
Best video to understand arrow function and return keyword. Thanks a lot Hitest, you made my day ;)
Oo boi this nasty arrow function and callback function settle everywhere on the code!! Warning the most important topic of js
This is not too much. Best for me. Really thanks
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
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.
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.
I am really enjoying this series. Keep it up Sir! You are the best and I look forward seeing you one day.
your concepts are unique. other channel do not explain these concepts
when hitesh sir dosent upload on sunday.
i feel my heart crack
had to spend 2 days on this but i understand it now thanks,
Sir it is like lambda or anonymous function in Python , I understood it easily
Hitesh sir you are a great teacher.
awesome lecture
Great video Hitesh I expected more description about callback function here.
thank you so much sir,,,,,,your concept is fabulous!!!!!!!!!!!!!!!!!!!!!!111
thank you great video I understand more about callback
Super simple and clean! Thank you!
insightful
dude youre awesome teacher!
Thanks
Loved it ❤️❤️
Thank you sir...
If you have only one input parameter you can even omit its paranthesis
another stellar vid. thanks G
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 ?
Thanks a lot
Always on time.awesome
very helpful tnx brother
I like this trick to check even or odd arrays: const isArrayEven = [2, 4, 6, 8].every(x => !(x & 1));
Great video 👍.
Great explanation:)
I luv Hitesh voice,,,bro I'm doing ece I'm eligible to do js?
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!
Keep going 👍
Thank you bhaiya.
Awesome video, getting pro in JavaScript 😜😜
thanks.
How come you are making us understand javascript so easy?...Thanks to you Hitesh Bhai...😊
Thank u so much sir
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);""""""""
This thing is just like lambda expressions in java
One of the Basic Rule of programming, if it's working, don't touch it.
What is the name of the Extension that you mention
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!!!
callbacks are like lambdas in kotlin... easy
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?
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
#10minutesJS day 21!
Made my day
var result=[2,3,4,5].every(iseven) is not working in console of my browser
Why we are not Putting () in isEven like isEven()? However thanks for awesome tutorials
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
is every method always return true or false???
Array.prototype.map() expects a return value from arrow function array-callback-return i am stuck at this error
Sir, is it necessary to have semicolon (;) at end of arrow function other wise will it give syntax error?
semicolon (;) are not compulsory in JS if you forgot to use ; then it will not throw an error.
Present Sir
Do you remember me?
similar to python for loop..
If anyone is from c# its same as lamda expression!
First viewer 💯
Which theme are you using ?
I have the same question
It's a costum coded theme
You'll not find any particular theme like this in VS Code marketplace
@@ramanshpathak9208 okay... Thanks for the info
let isEven = element => element % 2 === 0;
console.log(isEven(2));
true
Your IDE And the Theme please...
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
1st
viewer
Ravish kumar official
so much confusing
sir