For further actions, you may consider blocking this person and/or reporting abuse
Read next
Fast Track to Frontend: A 60-Day Roadmap from HTML/CSS Novice to JavaScript Ninja
Tanveer Hussain Mir -
North America Vision Care Market Revenue Growth Predicted by 2028
Hrithik -
3-hydroxypropionic Acid Market share, Market trends, and forecasts from 2024 to 2031.
Akash Sharma -
🚀 𝐀𝐈 𝐢𝐬 𝐫𝐞𝐯𝐨𝐥𝐮𝐭𝐢𝐨𝐧𝐢𝐳𝐢𝐧𝐠 𝐝𝐞𝐦𝐚𝐧𝐝 𝐠𝐞𝐧𝐞𝐫𝐚𝐭𝐢𝐨𝐧! 🚀
Nikhil Sathe -
Top comments (1)
So, we can think of a function as a box that does things, right? We put things into the box and the box acts upon them.
For example, imagine a box called "plus". The plus box will add together whatever things we happen to put into it. Like this:
Right now, we've used "plus" to add 1 and 2. We have 3, but it's just sitting in our box. We want 3 to be able to get out of the box:
The
returnkeyword is what allows us to get the 3 out of the box. Now, we give our box 1 and 2, and get 3 in return.