JavaScript Function Properties Tutorial (Arguments, Caller, Name, Length)

Published: 09 December 2014
on channel: Ghost Telepathy
937
11

JavaScript function properties tutorial, how to access function name, caller, arguments, and length inside a function. Learn how to loop through arguments, check function metadata, and convert a function to a string in JavaScript.

⏱️ Timestamps:
00:00 Introduction – accessing function metadata in JavaScript
00:06 Using parent and child functions for demonstration
00:26 Defining showProperties() with parameters
01:11 Accessing the arguments object inside a function
01:30 Getting the function’s own name with callee.name
01:58 Checking number of parameters with arguments.length
02:45 Finding the calling function using .caller.name
03:29 Difference between declared parameters and passed arguments
04:32 Iterating through all arguments with a for loop
05:21 Accessing arbitrary numbers of arguments dynamically
05:33 Arguments stored in the arguments array
05:58 Converting an entire function to string with .toString()
06:40 Summary – useful function properties for debugging and flexibility

📌 Quick Summary:
Learn how to inspect JavaScript functions from the inside. This tutorial covers arguments, callee, caller, length, looping through parameters, and converting a function into a string with .toString().

🏷️ Tags
javascript function properties,javascript arguments object,javascript function caller,javascript function name,javascript function length,javascript inspect function,javascript toString function,javascript function tutorial,javascript function metadata,javascript arguments loop,javascript callee vs caller,javascript beginner tutorial,learn javascript functions


On this page of the site you can watch the video online JavaScript Function Properties Tutorial (Arguments, Caller, Name, Length) with a duration of hours minute second in good quality, which was uploaded by the user Ghost Telepathy 09 December 2014, share the link with friends and acquaintances, this video has already been watched 937 times on youtube and it was liked by 11 viewers. Enjoy your viewing!