Tag: Functions
4 posts
-
Lodash Utilities Worth Knowing: Arrays, Objects, debounce/throttle and TypeScript Use
Useful Lodash utility functions for arrays, objects, collections, functions (debounce, throttle, memoize), strings and numbers, with real-world examples and TypeScript support.
-
Python Functions: Parameters, Defaults, Closures, and the Traps Behind Them
How Python functions really behave: positional-only and keyword-only parameters, the mutable default trap, late-binding closures, nonlocal, and functools.wraps.
-
JavaScript Functions: Hoisting, Arrow Functions and this, Default Parameters, Closures and Lost Method Context
How JavaScript functions behave: declaration vs expression hoisting, arrow functions and this, default parameters, loop closures and lost this in callbacks.
-
C++ Functions: Parameters, Return Values, and Overloading
Complete C++ function guide for beginners: declaration vs definition, pass by value/reference/pointer, return rules, RVO, default arguments.