Challenge: Simple Function
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 46
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Fantastico!
Completion tasso migliorato a 1.33
Challenge: Simple Function
Scorri per mostrare il menu
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 46
single