JavaScript Definir função
function nameFunction(parameters) {
document.write("function script")
}
Rick Astley
function nameFunction(parameters) {
document.write("function script")
}
function myFunction(var1, var2) {
return var1 * var2;
}
function name(parameter1, parameter2, parameter3) {
code to be executed
}
def (n1,n2):
total=n1+n2
return total
print(sum(100,200)