JAVASCRIPT · ОСНОВЫ · LESSON 17
Function with response
Arguments and return · about 12 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Type an example manually. Check the names, brackets and signs.
function add(a, b) {
return a + b;
}
console.log(add(2, 3));Open the editor for class workSolve it yourself
Create a multiply function (a, b), which returns the product of a and b. Find the result multiply(3, 4).
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework