Calling Functions
When you call a function in JavaScript, you tell the program to execute the code inside that function. To call a function, you write its name followed by parentheses. If the function expects data, you provide it inside the parentheses. This process is called invoking the function. When a function is called, the JavaScript engine jumps to the function's code, runs it, and then returns to where the call was made. You can call a function as many times as you want, and each call can use different data.
1234567function greet(name) { console.log("Hello, " + name + "!"); } greet("Alice"); greet("Bob"); greet("Charlie");
Danke für Ihr Feedback!
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Awesome!
Completion rate improved to 7.69
Calling Functions
Swipe um das Menü anzuzeigen
When you call a function in JavaScript, you tell the program to execute the code inside that function. To call a function, you write its name followed by parentheses. If the function expects data, you provide it inside the parentheses. This process is called invoking the function. When a function is called, the JavaScript engine jumps to the function's code, runs it, and then returns to where the call was made. You can call a function as many times as you want, and each call can use different data.
1234567function greet(name) { console.log("Hello, " + name + "!"); } greet("Alice"); greet("Bob"); greet("Charlie");
Danke für Ihr Feedback!