Home
<!DOCTYPE html> <html> <body> <h1>Demo: call() and apply()</h1> <script> function WhoIsThis() { alert('Hi'); } WhoIsThis(); WhoIsThis.call(); WhoIsThis.apply(); </script> </body> </html>
Result: