Skip to content

Instantly share code, notes, and snippets.

@ronapelbaum
Last active March 28, 2018 18:33
Show Gist options
  • Save ronapelbaum/29c1b1c143ac9a16a35f1c044ebb9eb0 to your computer and use it in GitHub Desktop.
Save ronapelbaum/29c1b1c143ac9a16a35f1c044ebb9eb0 to your computer and use it in GitHub Desktop.
interview: front end developer

interview: front end developer

basic algorithm

  1. implement function reverseString(str)
  2. implement function factorial(n)
  3. implement function removeFromArray(arr, arg1, arg2, ...)

javascript

  1. What will be the output of this:
for (var i = 0; i < 5; i++) {
  setTimeout(function() { console.log(i); }, i * 1000 );
}
  1. What will be the output of this:
(function () {
  console.log(typeof a);
  console.log(typeof foo);
  console.log(typeof goo);

  var a = 5;
  function foo(){}
  var goo = function(){};
})();
  1. What will be the output of this:
(function() {
  console.log(1); 
  setTimeout(function(){console.log(2)}, 1000); 
  setTimeout(function(){console.log(3)}, 0); 
  console.log(4);
})();
  1. How can you invoke a function in javascript?
  2. Write a simple Object Oriented heirarchy (i.e. Shape, Rect, Square, Circle)
var shape;// init?
shape.move(point);
shape.draw();

es6

  1. what is the diferent between var, const and let?
  2. what are arrow functions?
  3. what are promises?
  4. what are polyfils? write one (Array's filter())

web

  1. build a button that adds data to ui
  2. fire mousemove on middle of screen
<div id="a">
  <div id="b">
  </div>
</div>
  1. describe how would you implement form validation
  2. document vs window
  3. describe possible memory leak

css

  1. implement li horizontal
  2. explain "box model"?
  3. implement a modal box
  <div class="content">
  </div>
  <div class="modal-bkg">
    <div class="modal">
      hello world
    </div>
  </div>

angular

  1. what is scope
  2. what is digest
  3. write a simple controller/component
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment