Can anyone help me? javascript language

Asked

Viewed 56 times

-5

Set the function hojeSeJoga, which receives by parameter a string that informs the day of the week. This function should return"Today is football day! ! !" if parameter is "Sunday", otherwise it should return "Today is not football day :(".

Remember that variables and strings should be written equal to the statement, respecting spaces and exclamations.

  • 2

    https://answall.com/search?q=hojesejoga

1 answer

-2


    function hojeSeJoga (diaDaSemana){
if(diaDaSemana == 'domingo'){
  return 'Hoje é dia de futebol! ! !';
}else{
  return 'Hoje não é dia de futebol :(' ;
}

}

Today June('Sunday');

Browser other questions tagged

You are not signed in. Login or sign up in order to post.