EmberJS Meetup #3

What will the following code output to console:
console.log([1] + 2)
[12]
[1, 2]
12
What will the following code output to console:
 
var b = 1;

function outer() {
  var b = 2;

  function inner() {
    b = b + 2;
    var b = 3;
    console.log(b);
  }

  inner();
}

outer();
1
3
4
What will the following code output to console:
 
console.log([1, 2, 3] == [1, 2, 3])
True
False
Undefined
What will be the result of executing this code:
 
function f() {
  return
    {
       a: 1
    }
}

f();
Undefined
{a:1}
1
What will the following code output to console:
 
console.log('true' == true)
True
False
Undefined
{"name":"EmberJS Meetup #3", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"What will the following code output to console: console.log([1] + 2), What will the following code output to console:   var b = 1; function outer() {  var b = 2;   function inner() {    b = b + 2;    var b = 3;    console.log(b);  }   inner();} outer();, What will the following code output to console:   console.log([1, 2, 3] == [1, 2, 3])","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker