JavaScript,JavaScript中的这个“variable.function(参数)”表示法是什么?

时间:2017-08-09 03:44:02

标签: javascript

编写代码,以便控制台日志打印出来。

add(addValue)应返回一个新数组,其中addValue被添加到原始数组的每个值中, 即[6, 7, 8, 9, 10][11, 12, 13, 14, 15]

var e = [1, 2, 3, 4, 5];

console.log(e.add(5) == '[6,7,8,9,10]');

var d = [1, 2, 3, 4, 5];

console.log(d.add(10) == '[11,12,13,14,15]');

1 个答案:

答案 0 :(得分:2)

我想你要向ninja@ninja:~/Documents/lartest/demo$ php artisan serve PHP Warning: require(/home/ninja/Documents/lartest/demo/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /home/ninja/Documents/lartest/demo/bootstrap/autoload.php on line 17 PHP Fatal error: require(): Failed opening required '/home/ninja/Documents/lartest/demo/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php') in /home/ninja/Documents/lartest/demo/bootstrap/autoload.php on line 17 添加add()方法(这通常是一个坏主意)



Array.prototype