Funkcja składni
function nom([param1[, param2,[..., paramN]]]) {
[instructions]
}
Mohamed
function nom([param1[, param2,[..., paramN]]]) {
[instructions]
}
// Define a function that prints a stringfunction welcomeMessage() { console.log('Welcome to JavaScript');}// Call the functionwelcomeMessage();