Challenge: Simple Function
Aufgabe
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 46
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Großartig!
Completion Rate verbessert auf 1.33
Challenge: Simple Function
Swipe um das Menü anzuzeigen
Aufgabe
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 46
single