<!DOCTYPE html> <html> <head> <title>console.log test</title> </head> <body> <script> function foo() { console.log('yellow') } function bar() { foo(); } bar(); </script> </body> </html>