var obj ={ x:10, }var x=20 var F = function(){ var x=30; return this.x; } console.log(F.call(obj));console.log(F.call(F)); console.log(F.call(window)); ================================================output of above javascript at console is - Study24x7
Social learning Network

Warning: include(./views/auth.php): failed to open stream: Permission denied in /var/www/html/live/loginRightSlider.php on line 18

Warning: include(): Failed opening './views/auth.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/live/loginRightSlider.php on line 18
29 Jan 2020 12:46 AM study24x7 study24x7

var obj ={ x:10, }var x=20 var F = function(){ var x=30; return this.x; } console.log(F.call(obj));
console.log(F.call(F)); console.log(F.call(window));

================================================
output of above javascript at console is

A

undefined 20 undefined

B

10 undefined undefined

C

10undefined30

D

undefined20undefined

study24x7
Write a comment
  • Nidhi Gupta
  • 10 undefined 20
  • Anand Gupta
  • Correct answer is 10 undefined 20 which is not in option.
    Related Questions
    500+   more Questions to answer
    Most Related Articles