Deklaruj funkcję JavaScript
function myFunction(var1, var2) {
return var1 * var2;
}
Wrong Willet
function myFunction(var1, var2) {
return var1 * var2;
}
<div class="alert alert-warning alert-dismissible fade show" role="alert">
<strong>Holy guacamole!</strong> You should check in on some of those fields below.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
var x = myFunction(10, 10); // Function is called, return value will end up in x
function myFunction(a, b) {
return a * b; // Function returns the product of a and b
}
function MyFunction() {
/* Function Here */
}
function name(parameter1, parameter2, parameter3) {
code to be executed
}
def (n1,n2):
total=n1+n2
return total
print(sum(100,200)