EmberJS Bulgaria first meetup

What will this code output to Console:
 
function f() { bar = 2; }
f()
bar
Undefined
2
ReferenceError: bar is not defined
What will be the result of executing this code:
 
function f() {
  var foo = 1;
  console.log(foo + ' ' + bar);
  var bar = 2;
}
'1 undefined '
'1 2'
3
What will this code output in Console:
 
if (typeof b === undefined) {
console.log(1);
} else {
console.log(2);
}
 
var b = 1;
1
2
ReferenceError: b is not defined
What will this code output in Console:
 
[] === []
True
False
Undefined
{"name":"EmberJS Bulgaria first meetup", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"What will this code output to Console: >function f() { bar = 2; }>f() >bar, What will be the result of executing this code: function f() {  var foo = 1;  console.log(foo + ' ' + bar);  var bar = 2;}","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker