Challenge: Simple Function
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 4. ChapterΒ 2
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.33
Challenge: Simple Function
Swipe to show menu
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 4. ChapterΒ 2
single