You have a bag containing an unlimited amount of tennis balls and five boxes which you are trying to throw then into. For every throw you are guaranteed to get a ball in one box. What is the minimum probability of getting 11 balls in any one box.
End Developer Junior Front Interview Questions
15,856 end developer junior front interview questions shared by candidates
Q. If you have three divs inside a container, how would you make it center? Q. How do you make horizontally spread divs into a vertical line in mobile phone?
Just let me ask the questions about the company, no technical things.
randomize an array.
For the take-home code test, they want you to build a UI, with which to search for campaigns, each by the campaign URL (they provide working sample URLs in the README). Upon successful search, the result is to be added to a list of results, from their response JSON/JSONP (which, BTW, doesn't even have the correct content type, in the response header). Each result is rendered per their README, with regard to CSS and PNG images (for removing a result from the results list, etc, which they also provide). The donation amount for each result is added to a total, to be rendered, via alert, upon a button click. Upon removal of a result, its donation amount is subtracted from the total, and rendered dollar amounts must be formatted (i.e., $10,000.00). As an additional condition, each result should render only after its child images (for which there are two source links: one for the campaign, the other for the campaign owner) have loaded into the DOM. They suggest you spend no more than three hours on the test, and provide you a span of seven days, in which to submit your working code, along with any notes.
How do you make a function that takes f and returns a function that calls f on a timeout?
The first question was JavaScript scoping: var x = 9; var module = { x: 81, getX: function() { this.x = 10 return this.x; } }; module.getX(); // nr 1 -> 10 var retrieveX = module.getX; retrieveX(); // nr 2 -> 9 var boundGetX = retrieveX.bind(module); boundGetX(); // nr 3 -> 81 The second question was FizzBuzz again:
how would you attach an event to an object
Technical question: write a login form that locks after 5 incorrect tries. Upload creds using ajax.
Given a JS object, obj = {a: 1, getA: function() { return this.a } } var get = obj.getA; console.log(get()); what will it print? How will you prevent it to fit undefined?
Viewing 61 - 70 interview questions