Function ex-4


#1

Vamos criar uma função que diga ao mundo o que você quer comer.

Declare sua função e chame-a foodDemand.
Você pode dar ao parâmetro qualquer nome que quiser. Mas vamos chamá-lo food, porque é isso que vai mudar sempre que chamarmos a função console.log("Quero comer" + " " + food);
Chame a função e insira uma comida específica que você queira!

ERRO -
Oops, tente outra vez. There was a problem with your syntax.


#2

Though Spanish is a beautiful language you have a better chance of finding help when you post in English.

Can we see your code?


#3

GOOGLE TRANSLATE:

We will create a function that tells the world what you want to eat.

Declare your function and call it foodDemand .
You can give the parameter any name you want. But let's call it food, because that's what will always change that call the function console.log ( "I want to eat" + " " + food ) ;
Call the function and enter a specific food you want!

ERROR -
Oops, try again. There was a problem with your syntax .

...For those who don't know Spanish.


#4

I do know Google Translate :slightly_smiling:
That's why I asked for your code

there is something wrong with your syntax, it is hard to diagnose without seeing the patient.