interview: front end developer
implement function reverseString(str)
implement function factorial(n)
implement function removeFromArray(arr, arg1, arg2, ...)
What will be the output of this:
for ( var i = 0 ; i < 5 ; i ++ ) {
setTimeout ( function ( ) { console . log ( i ) ; } , i * 1000 ) ;
}
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 ( ) { } ;
} ) ( ) ;
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 ) ;
} ) ( ) ;
How can you invoke a function in javascript?
Write a simple Object Oriented heirarchy (i.e. Shape
, Rect
, Square
, Circle
)
var shape ; // init?
shape . move ( point ) ;
shape . draw ( ) ;
what is the diferent between var
, const
and let
?
what are arrow functions?
what are promises?
what are polyfils? write one (Array's filter()
)
build a button that adds data to ui
fire mousemove
on middle of screen
< div id ="a ">
< div id ="b ">
</ div >
</ div >
describe how would you implement form validation
document
vs window
describe possible memory leak
implement li
horizontal
explain "box model"?
implement a modal box
< div class ="content ">
</ div >
< div class ="modal-bkg ">
< div class ="modal ">
hello world
</ div >
</ div >
what is scope
what is digest
write a simple controller/component