Hey devs! π
Today was all about one of the most powerful building blocks in JavaScript β functions. Hereβs what I covered:
πΉ Function Declaration & Calls
How to define a function and call it when needed.
πΉ Arguments & Return Values
Passing values into functions and returning results back.
πΉ Scopes in JavaScript
I finally understood:
Function Scope
Block Scope
Lexical Scope
πΉ Function Expressions
Using functions as variables β opening doors to more flexibility.
πΉ Higher Order Functions
Mind-blowing stuff! Functions that:
Accept other functions as arguments
Return other functions β welcome to functional programming!
πΉ JS Methods
And lastly, the difference between functions and methods.
(Hint: Methods are just functions inside objects π)
π All My Links: https://linktr.ee/vikasdotdev
Top comments (0)