# How do you find out the caller function in JavaScript?

JavascriptWeb DevelopmentFront End Technology

To find the caller function, you need to use the non-standard feature “function.caller”. Previously, “argument.caller” property was considered, which is now obsolete.

## Example

You can try to run the following function to get the caller function

Live Demo

<html>
<script type="text/javascript">
function Display() {
</html>