Improve your javascript’s skill
Quiz 1
What is the result of executing this code?
var foo = function foo() {
console.log(foo === foo);
}
foo();Quiz 2
What is the result of executing this code?
console.log(true + false > 2 + true)Quiz 3
What is the result of executing this code?
console.log([] + [] + 'foo'.split(''));Quiz 4
What is the result of executing this code?
var a = [1,2,3];
a.length = 1;
a.push(4);
console.log(a)Quiz 5
What is the result of executing this code?
var arr = [];
arr[0] = 'a';
arr[1] = 'b';
arr.foo = 'c';
console.log(arr);