@ayaanh22/

JS function

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
function multiply(a, b){
	// The function takes two parameters a and b
    // and returns the product 


// Call the multiply function with the arguments 10 and 2.
// 10 becomes the value of a and 2 becomes the value of b.
multiply(10, 2); // you might want to try this with other numbers 
Native Browser JavaScript