Challenge: Simple Function
Tehtävä
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
messageFunc
function, use theconsole.log
statement to output the given text. - Call the
messageFunc
function in the end.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 4. Luku 2