JavaScript Básico - Global Scope and Functions

Olá amigos, tudo bem?
Tenho praticado exercícios corretamento no FreeCodCamp. Da Aula Global Scope and Functions :

Tentei replicar no VSCode e no Mycompiler: Mas queria entender porque não retornou nada?
Somente um vazio?

Link Mycompiler:

Print VScode:

The challenge test will run the functions for you.

In the real world, you have to invoke the functions otherwise they do not do anything.

// your code
fun1();
fun2();
2 Likes

hey friend, thanks for the help!