Challenge: Defining a Compound Function
Taak
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 52
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Geweldig!
Completion tarief verbeterd naar 1.33
Challenge: Defining a Compound Function
Veeg om het menu te tonen
Taak
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 52
single