1. PHP
2. Java
3. Ruby On Rails
4. Javascript
Javascript
1. true
2. false
false
1. true
2. false
true
1. true
2. false
true
1. { foo: 1 }
2. N/A, the above throws an error
3. { foo: 1, bar: 2 }
4. { foo: 1, 2: bar }
{ foo: 1, bar: 2 }
1. self1 === self3
2. self2 === self3
3. self1 === self2
4. self2 !== self3
self2 !== self3
1. Animal
2. Dog
3. Object
4. Function
Dog
1. TypeError
2. SyntaxError
3. 'The speed brown fox jumps over the lazy dog.'
4. 'The quick brown fox jumps over the lazy dog.'
'The quick brown fox jumps over the lazy dog.'
1. [1, 2, 3]
2. [1, 2, 3, 4, 5, 6]
3. [4, 5, 6, 1, 2, 3]
4. Uncaught TypeError: Assignment to constant variable.
Uncaught TypeError: Assignment to constant variable.
1. [2, 1, 1]
2. [2, undefined, 1]
3. [2, 1, 2]
4. [2, undefined, 2]
[2, 1, 1]