All Pro Web Designs > > Learning Tutorials > Programming Languages > JavaScript > Once You Realize This You Will Never Struggle With Callbacks Again
Once You Realize This You Will Never Struggle With Callbacks Again
- February 19, 2024
- Posted by: MainInstructor
- Category: JavaScript Learning Tutorials Programming Languages Repositories
Video Title: Once You Realize This You Will Never Struggle With Callbacks Again
-
Sale!
Wireless WIFI Repeater Extender Amplifier Booster 300Mbps
$29.99$14.99 Add to cartWireless WIFI Repeater Extender Amplifier Booster 300Mbps
Categories: Electronics, Wi-Fi Router, Wireless Wi-Fi Extender Tags: 300Mbps, 802.11N, Amplifier, Booster, Extender, mobile wi-fi booster, Remote, WIFI, Wireless, Wireless WIFI, Wireless WIFI Repeater, Wireless WIFI Repeater Extender, Wireless WIFI Repeater Extender Amplifier, Wireless WIFI Repeater Extender Amplifier Booster, Wireless WIFI Repeater Extender Amplifier Booster 300Mbps$29.99$14.99 -
Sale!
Full RGB Light Design Gaming Headset Headphones with Mic
$24.99$14.99 Add to cartFull RGB Light Design Gaming Headset Headphones with Mic
Categories: Electronics, Gaming, Gaming Headsets Tags: Design, Full, Full RGB Light Design Gaming Headset, Full RGB Light Design Gaming Headset Headphones, Full RGB Light Design Gaming Headset Headphones with Mic, Gamer, Gaming, Gaming Headset Headphones, gaming headset wireless, Headphone, Headphones, Headset, Light, Mic, Package, RGB$24.99$14.99 -
Sale!
Wireless BlueTooth Multi-Device Keyboard Mouse Combo
$39.99$19.99 Add to cartWireless BlueTooth Multi-Device Keyboard Mouse Combo
Categories: Electronics, Gaming, Gaming Keyboards, Keyboard Mouse Combos Tags: Combo, Keyboard, keyboard mouse combos, Mouse, MultiDevice, Set, WireKeyboard Mouse Combo, Wireless, Wireless BlueTooth Keyboard Mouse Combo, Wireless BlueTooth Keyboard Mouse Combos, Wireless BlueTooth Multi-Device Keyboard Mouse Combo, Wireless BlueTooth Multi-Device Keyboard Mouse Combos$39.99$19.99 -
Sale!
High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
$199.99$139.99 Add to cartHigh Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
Categories: Gaming, Gaming Chairs Tags: Adjustable, Chair, computer chairs, Desk, Executive, Gaming, Girl, Headrest, High, High Back Leather Executive Adjustable Swivel Gaming Chair, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar, High Back Leather Executive Adjustable Swivel Gaming Chairs, Leather, Lumbar, Office, Racing, Swivel$199.99$139.99 -
Sale!
Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
$29.99$19.99 Select optionsProfessional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
SKU: N/A Categories: Electronics, Gaming, Gaming Headsets Tags: Cancelling, Gaming, Gaming Headphones with Noise Cancelling Microphone, gaming headset, Headphones, Headset, LED, Light, Mic, Microphone, Noise, Professional, Professional LED Light Wired Gaming Headphones, Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone, Wired, Wired Gaming Headphones, Wired Gaming Headphones with Noise Cancelling Microphone$29.99$19.99 -
Sale!
Gaming Desk with LED Lights USB Power Outlets and Charging Ports
$349.99$249.99 Select optionsGaming Desk with LED Lights USB Power Outlets and Charging Ports
SKU: N/A Categories: Computer Desk, Gaming, Gaming Desk Tags: and Charging Ports, Charging, Desk, Desks, Gaming, gaming desk with led lights, Gaming Desks with LED Lights, Home, LED, Lights, Monitor, Office, Outlets, Port, Power, Room, Stand, USB, USB Power Outlets, White, Workstation$349.99$249.99 -
Sale!
Wired Mixed Backlit Anti-Ghosting Gaming Keyboard
$99.99$79.99 Add to cartWired Mixed Backlit Anti-Ghosting Gaming Keyboard
Categories: Electronics, Gaming, Gaming Keyboards Tags: Antighosting, Backlit, Blue, brown, Gaming, Gaming Keyboard, gaming keyboards, gaming keyboards and mouse, Keyboard, Laptop, Switch, Wired, Wired Mixed Backlit Anti-Ghosting Gaming Keyboard, Wired Mixed Backlit Anti-Ghosting Gaming Keyboards, Wired Mixed Backlit Gaming Keyboard$99.99$79.99 -
Sale!
Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
$119.99$59.99 Add to cartWireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
Categories: Electronics, Gaming, Gaming Headsets Tags: 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, ANC, Audio, Bluetooth, Cancellation, Ear, Earphone, gaming headset, Headphones, Headset, Hi-Res Over the Ear Headphones Headset, HiRes, Noise, Wireless, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Headphones, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headsets$119.99$59.99 -
Sale!
Wired Sports Gaming Headset Earbuds with Microphone
$19.99$9.99 Select optionsWired Sports Gaming Headset Earbuds with Microphone
SKU: N/A Categories: Gaming, Gaming Headsets Tags: Accessories, Earbud, Earphone, Earphones, Gaming, gaming headset with microphone, Headphones, Headset, IOS, Microphone, Sports, Wired, Wired Sports Gaming Headset Earbuds, Wired Sports Gaming Headset Earbuds with Microphone, Wired Sports Headset Earbuds$19.99$9.99 -
Sale!
150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
$49.99$29.99 Add to cart150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
Categories: Charging Stations, Electronics Tags: 150W, 150W Charging Station, 150W Universal Multi USB Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Stations, 150W Universal Multi USB MAX Charging Station, 16 Port MAX Charging Station, 3.5A, Charger, Charging, Fast, laptop charging stations, Max, Multi, Port, Stand, Station, Universal, USB$49.99$29.99
In Depth Explanation: https://youtu.be/7UMuJMiNjSk
Your more clearer than my bootcamp lecturer
Bro console.dir 😮
Functions are objects. JS is a mess.
Yeah I pass functions a lot when making a flexible feature
Callback functions are freaken awesome.
To any beginners almost everything except primitive data types are objects in JS. That's why you can do stuff like this. Functions are objects ,arrays are objects,window is a object and so on
It's actually a basic common sense , function is not a variable but it can store a value . This guy makes it like he invented something that's a common basic sense of a basic JavaScript programmer . I guess he is a web developer
the title is a lie!
I asked my prof not too long ago if all variables are objects in js, since I noticed the syntax variable.toFixed(), which implied to me that toFixed(), is a method of that variable because of dot syntax. But he said all variables are not objects, and this is a reputable Toronto College. Why would toFixed() be used this way, and not have the variable passed inside of the function as such toFixed(variable)??
function IS an object, and NOT a variable – but it can be assigned to one
Makes so much sense now!
I think if someone doesn't even understand higher order function maybe they shouldn't be developers
that makes much more sense, now, I thought when you call a function it gets executed and the result/return is passed. Now that you and some other peeps here mentioned that a function is an object makes almost everything clear! Thanks!
And is there another way to pass data from child to parent in React?
Got more confused after watching ur video
And in C it’s just a pointer
I like to avoid saying anything is a variable. It can cause confusion later. A variable points to things, it is not itself the thing
GayDevFucklified
how can i use the values of function without return or calling that function
I hate this! I'll never understand the concept.
You talk so fast.
use monads and functional async without even know these concepts. love "plan" in js-awe library.
If you intend to use a reusable module, use an alias for the function you're passing through as argument.
function isn't function
Functions are both variable and value.
I wouldn't call them variables.
Functions are humans too guys
God i hate this format. Can only pause it, so if i want to hear something again, gotta wait for next loop
Bro… stop shouting at people through your camera lens, people are just trying to learn. Don’t forget where you came from! You were a beginner once too…
Because javascript functions are just object
What are variables again.
Fun fact, a function always returns false with logical operators.
i have seen your videos, but i have not found any complete course about reactjs,
Functions return a value (let's call this value 'x' for now). Calling a function inside another function is basically just passing this value 'x' into another function. This is how I understand it, Please don't kill me
That’s true even in math. Sure, there functions map from a set to on other, but in building modern mathematics on set-theory, they’re just constructed from more elaborate sets.
Well, even that doesn’t make the concept of a ‘function’ equivalent to that of a set. And in Javascript a function-object isn’t a function but it’s a representation of a function. By JavaScript convention we just call that a function though.
The important thing is that when you run code defining a function in Javascript, it’s storing some representation of it, the way the video indicates. And that representation is just in the form of a Javascript object. Javascript runs on Javascript objects just like computers run on bits and gates in the form of elaborate patterns of transistors. Similarly standard math runs on sets which runs on propositional logic which is an abstract version of bits and logical gates.
The point is that computational concepts can be represented on a lot of substrates. That doesn’t actually mean the more abstract concept of a ‘function’ is Javascript objects nor sets nor a bunch of transistors. Just like the number 5 isn’t made of apples because you can have five apples. But five apples represents five nonetheless.
And when you’ve thought about these things once, you’ll realize that a good representation of an abstract concept is often all you ever want or need. We can even forget the abstract concept and just compare two different representations and make sure they’re equivalent for the purposes we care about (purposes, which implicitly restrict the abstract concept). Five apples are equivalent to five lemons if we count them (comparing them as unordered sets), and Javascript ‘functions’-object representations are analogues to ‘function’-representations in other languages.
To make things more complicated there are a whole bunch of slightly different concepts going by the same name ‘function’. Javascript ‘functions’-objects behave differently than some other concepts also call functions. For example in some languages functions aren’t allowed to change the state of the argument they’re passed. Some concepts of functions are very strict with types on input and output. Not so for Javascript ‘function’-objects. Some concepts of functions are required to always return the same value given the same input. Not so for javascript ‘function’-objects.
In essence there are a bunch of different ‘function’-concepts which each are instantiated in different ways in different languages.
society if everyone realized that functions should be values
It's not the passing of a function, but the untidy manner of writing a whole function inside the parentheses.
i don't know if the callbacks in js is similar to the function pointers like in c…
but that's how i assumed it to be since c was the first language i learnt.
Huh
Passing a function to a function…is confusing?
They clearly are horrible programmers or are wannabe, how is this confusing?!
The way I think about it, is that everything is a memory address. A function pointer, points towards a memory address, just like a variable (int32_t, char, etc.)