MCQs>IT & Programming>JavaScript>What will be printed to console? function Foo(){ var foo = 1; bar = 'hello' } var f = new Foo; console.log(f.foo,bar);
JavaScript MCQs
What will be printed to console? function Foo(){ var foo = 1; bar = 'hello' } var f = new Foo; console.log(f.foo,bar);
Answer
Correct Answer: undefined "hello"
Explanation:
Note: This Question is unanswered, help us to find answer for this one