Challenge: Defining a Compound Function
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 52
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Genial!
Completion tasa mejorada a 1.33
Challenge: Defining a Compound Function
Desliza para mostrar el menú
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 52
single