User Interface Expert Question:

Coding Based UI Developer Interview Questions:

Tweet Share WhatsApp

Answer:

☛ What is the value of foo?
var foo = 10 + '20';
Question: How would you make this work?

add(2, 5); // 7
add(2)(5); // 7

☛ What value is returned from the following statement?
"i'm a lasagna hog".split("").reverse().join("");

☛ What is the value of window.foo?

( window.foo || ( window.foo = "bar" ) );

☛ What is the outcome of the two alerts below?
var foo = "Hello";
(function() {
var bar = " World";
alert(foo + bar);
})();
alert(foo + bar);

☛ What is the value of foo.length?
var foo = [];
foo.push(1);
foo.push(2);

☛ What is the value of foo.x?
var foo = {n: 1};
var bar = foo;
foo.x = foo = {n: 2};

Download UI Developer PDF Read All 90 UI Developer Questions
Previous QuestionNext Question
CSS Based UI Developer Interview Questions:Testing Based UI Developer Interview Questions: