Helper Functions
All functions are bound to do a specific task. And whenever a function is used inside a function for certain task they are called as helper functions.
Example:
Explanation:
getfahrenheit()
function get a argument ascelsius
which is then passed on to the multiplyByNineFifths()When
multipluByNineFifths()
recieves an argument it passes it on to its inside taskWhen all that is followed we get the final value which is captured and then logs as output.
Another Example:
Last updated