Demo entry 6345599

Test de Javascript

   

Submitted by Nicolaie Constantinescu on Feb 01, 2017 at 12:05
Language: JavaScript. Code size: 467 Bytes.

function ex(unu, doi){
  console.log(this);  // Window
  this.trei = 3;      // se creeaz─â prop trei: window.trei care este 3
  console.log(ex.arguments); // Arguments {0:1,1:2,calee:ex(),length:2,__proto__:Object}
  function intern(patru, cinci){
    console.log(this.trei);    // 3
    console.log(ex.arguments); // Arguments {0:1,1:2,calee:ex(),length:2,__proto__:Object}
    console.log(unu); // 1
  };
  intern();
}; ex(1,2);
console.log(window.trei);

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).