Challenge: Defining a Compound Function
Tarefa
Swipe to start coding
- Define a new function called
showStudentDatahaving parameters:name,ageandscore. - Inside the
showStudentDatafunction:-
Use two
console.loglines to output thenameandageof the student in the following format:Name: John Smith Age: 24 -
Call the
getGradefunction usingscoreas an argument.
-
- Finally, call the
showStudentDatafunction with the following arguments:"Alice",22,97.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 52
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 1.33
Challenge: Defining a Compound Function
Deslize para mostrar o menu
Tarefa
Swipe to start coding
- Define a new function called
showStudentDatahaving parameters:name,ageandscore. - Inside the
showStudentDatafunction:-
Use two
console.loglines to output thenameandageof the student in the following format:Name: John Smith Age: 24 -
Call the
getGradefunction usingscoreas an argument.
-
- Finally, call the
showStudentDatafunction with the following arguments:"Alice",22,97.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 52
single