Ui developer Interview Questions | Glassdoor.co.uk

Ui developer Interview Questions

68

ui developer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Write a javascript function to draw a chessboard

3 Answers

Using a loop and mod function, obvs.

div.chess-row { height:35px; } div.chess-column { height: 35px; width: 35px; display: inline-block; border:solid 1px black; } div.chess-column.black-cell { background-color:black; } for(var i=1;i

div.chess-row { height:35px; } div.chess-column { height: 35px; width: 35px; display: inline-block; border:solid 1px black; } div.chess-column.black-cell { background-color:black; } Js:- for(var i=1;i<=8;i++) { var chessRow=document.createElement("div"); chessRow.classList.add("chess-row"); chessRow.classList.add("chess-row_"+i); document.querySelector('body').appendChild(chessRow); for(j=1;j<=8;j++) { var chessColumn=document.createElement("div"); chessColumn.classList.add("chess-column"); if(((i+j)%2)==0) { chessColumn.classList.add("black-cell") } document.querySelector('body .chess-row_'+i).appendChild(chessColumn); } }

Code a CSS gird/flexbox and use Javascript to select certain elements on the page

1 Answer

Please debug this buggey JS hover event

1 Answer

pseudo classes and elements in css

1 Answer

They asked me the difference between a forEach loop and filter or map of an array in JavaScript.

1 Answer

Please remove the focus outline from this element using CSS

1 Answer

If you click this button what should happen?

1 Answer

what is o2 form

1 Answer

what is srp

1 Answer

How would you setup and sync a project across platforms?

1 Answer
110 of 68 Interview Questions

See Interview Questions for Similar Jobs