fork download
  1. // your code goes here
  2.  
  3. function Test(prop, array_prop){
  4. this.array_prop = array_prop;
  5. this.prop = prop;
  6. }
  7.  
  8. Test.prototype.test_method = function(){
  9. this.array_prop.forEach(function(element, index, array){
  10. //undifine т.к. this это к функции
  11. this.prop += this.prop;
  12. });
  13. };
Success #stdin #stdout 0.02s 4980KB
stdin
Standard input is empty
stdout
Standard output is empty