UI Developer

  Home  GUI  UI Developer


“User Interface Expert based Frequently Asked Questions by expert members with experience as GUI Developer. These questions and answers will help you strengthen your technical skills, prepare for the new job test and quickly revise the concepts”



90 UI Developer Questions And Answers

37⟩ Loop through the "me" object and print each value to the console without assuming you know the keys. Extra bonus print each color in a separate console.log() without assuming you know the key of "fcolors" (detect the array, and handle printing the values of the array?

var me = {"fname": "Global", "lname": "Guideline", "fcolors": ["blue", "green", "whitesmoke"]};

for (var key in me){

if(me.hasOwnProperty(key)){

if(me[key] instanceof Array){

for( var i =0; i < me[key].length; i++ ){

console.log(me[key][i]);

}

} else {

console.log(me[key]);

}

}

}

 193 views

39⟩ Explain the difference between cookies, sessionStorage, and localStorage?

Cookies are small text files that websites place in a browser for tracking or login purposes. Meanwhile, localStorage and sessionStorage are new objects, both of which are storage specifications but vary in scope and duration. Of the two, localStorage is permanent and website-specific whereas sessionStorage only lasts as long as the duration of the longest open tab.

 180 views