O GoConqr está de visual novo! Conte para nós o que você achou.

Módulo 2 de 16 · Mídia

Functions Syntax

Kostas Diakogiannis

Functions Syntax

Functions' syntax 

We can define a function by using the function keyword followed by the unique name of the function and parentheses (we will talk later about them). Then as usual follows the body of the function. 

There inside the body we can define variables and do JS things as like we were in the global execution context. Once the function declaration finishes, we can call and execute whatever lies inside the function's body by calling the function by it's name as shown above followed by parentheses. 

The function summary anytime it is called, creates two variables named a and b with corresponding values 10 and 20 and prints the sum of them to console. 

 

Instruções

Para avançar no curso, envie uma tentativa deste quiz. Você pode enviá-la depois da última pergunta.

Ir para o módulo escolhido

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?