如何创建需要在 JavaScript 中输入的函数?
例子:
var a = 0;
var b;
function A(int myInteger){ //should it be something like var myInteger?
// do something with myInteger
// print something or do a = myInteger;
}
function B(a){
// do something with recieved integer
}
请帮我。