function come usarla in javascript code example
Example: funzioni javascript
function MyFunction(val1, val2){
console.log(val1 + val2);
}
MyFunction(2, 3);
//OUTPUT: 5
function MyFunction(val1, val2){
console.log(val1 + val2);
}
MyFunction(2, 3);
//OUTPUT: 5