Error: Cannot find module 'webpack-cli/bin/config-yargs'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous>
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous>
var Person=function(){
var data={
name:'es3';
sex:'male',
age:15
}
this.get=function(key){
return data[key]
}
this.set=function(key,value){
if(key!=='sex'){
data[key]=value
}
}
}
var data={
name:'es3';
sex:'male',
age:15
}
this.get=function(key){
return data[key]
}
this.set=function(key,value){
if(key!=='sex'){
data[key]=value
}
}
}
function f(...a){
var sum=0;
a.forEach(item=>{
sum+=item*1
});
return sum
}
console.log(f(1,2,3,6));
var sum=0;
a.forEach(item=>{
sum+=item*1
});
return sum
}
console.log(f(1,2,3,6));