Challenge: Simple Function
Taak
Swipe to start coding
Write a function called messageFunc that, when called, should print the text "This is a message from the function" to the console.
- Define a function called
messageFunc. - Inside the
messageFuncfunction, use theconsole.logstatement to output the given text. - Call the
messageFuncfunction in the end.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 46
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: Simple Function
Veeg om het menu te tonen
Taak
Swipe to start coding
Write a function called messageFunc that, when called, should print the text "This is a message from the function" to the console.
- Define a function called
messageFunc. - Inside the
messageFuncfunction, use theconsole.logstatement to output the given text. - Call the
messageFuncfunction in the end.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 46
single