Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Function Data Type</title> </head> <body> <script> let greeting = function(){ return "Hello World!"; } // Check the type of greeting variable document.write(typeof greeting) // Output: function document.write("<br>"); document.write(greeting()); // Output: Hello World! </script> </body> </html>