Qual'è il progetto di cui ti ritieni più soddisfatto? Sei abituato a lavorare in team?
Junior Software Developer Interview Questions
4,371 junior software developer interview questions shared by candidates
/* INSTRUCTIONS: Group an array of objects by status, and return the status name that has the most items in its corresponding array. */ const arr = [ { id: 1, title: "target1", status: "pending" }, { id: 2, title: "target2", status: "pending" }, { id: 3, title: "target3", status: "declined" }, { id: 4, title: "target4", status: "approved" }, { id: 5, title: "target1", status: "approved" }, { id: 6, title: "target6", status: "pending" } ]; function groupTargetsByStatus(arr) { const group = {} arr.forEach(item => { !group[item.status] ? group[item.status]=[ item ] : group[item.status].push(item) }) return group } function statusThatHasMostTargets(arr) { // your code here const group = groupTargetsByStatus(arr) let max = 0 let maxGroup = '' for ( let item in group) { if (item.length > max){ max = item.length maxGroup = item[0].status } } } console.log(groupTargetsByStatus(arr)) /* { pending: [ { id: 1, title: "target1", status: "pending" }, { id: 2, title: "target2", status: "pending" }, { id: 6, title: "target6", status: "pending" } ], approved: [ { id: 4, title: "target4", status: "approved" }, { id: 5, title: "target1", status: "approved" } ], declined: [ { id: 3, title: "target3", status: "declined" } ] } */ console.log(statusThatHasMostTargets(arr)) // "pending"
How does things work at your current organisation?
Sql Queries
Can you describe a project where you used a particular programming language or technology?
front end technologies
Communication methods in Linux kernel
Implement a circular printer. It takes the printer 1 second to move from letter to letter. For example, it takes the printer 3 seconds in total to move from A to C. Write a function that receives a string as an input, and returns how many seconds it takes the circular printer to print it.
How does the internet works?
2 stages 1) test 2) cultural fit
Viewing 2481 - 2490 interview questions