関数に詰めた配列をすべて実行したのちに新たにcFuncの引数を(10,20)として実行する場合どのように記述すれば良いでしょうか?
JavaScript
1function aFunc(x,y){ 2 console.log(x + y); 3} 4 5function bFunc(x,y){ 6 console.log(x + y); 7} 8 9function cFunc(x,y){ 10 console.log(x + y); 11} 12 13function dFunc(x,y){ 14 console.log(x + y); 15} 16 17var funcArray = new Array(); 18 19funcArray.push(aFunc(2,3)); 20funcArray.push(bFunc(4,5)); 21funcArray.push(cFunc(1,2)); 22funcArray.push(dFunc(9,5)); 23
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。