- How good are you at foosball?
- What developer tools do you use and what are some things you like about them?
- Walk me through a Cross site scripting attack? Cross site request forgery?
- NPM? How does node resolve dependencies? require('foo');
- Walk me through binding a model to a text input?
- How do you learn a library?
- Whats the most recent one you've tried?
How would you impose namespacing in CSS so that one person's stylesheet don't contaminate rest of the page?
If I wanted a different size font based on the size of the window. How would you do it? What about to scale based on the window size?
What are some design patterns you use day to day?
What is the revealing module pattern? Benefits? Cons?
- How do you emulate a private member in a JavaScript function?
function Foo(){ var bar = 'bar'; }
var foo = new Foo();
console.log(foo.bar)
- What will this output
- Make this output bar
- Why does
this
work? - If I didn't use new would it still work?
- Where does bar go without new?
Foo.prototype.bar = 'baz';
var foo = { bar: function () { return this.baz; }, baz: 'baz' };
foo.bar();
var a = foo.bar;
a();
If you wanted to pass all the arguments from a function to another. What's an easy way of doing it?
var asyncFunc = function(){ get('http://google.com', function(err){ throw err; }); };
try { asyncFunc(); } catch (e){ console.log(e); }
Two inputs [ ] [ ]
How would you build a calculator? How would you unit test the calculator?
{ add: .. subtract: ... multiply: .. divide: ... }