/javascript-interview-practice

Repository for holding JavaScript-related practice problems. Also great for those learning JavaScript for the first time!

Primary LanguageHTML

javascript-interview-practice

Repository for holding JavaScript-related practice problems. Also great for those learning JavaScript for the first time!

  • Practice Questions
    • What is the difference between declaring a variable with or without var?
    • Does a function definition have to preceed the function call?
    • Explain the Funarg problem.
    • Explain "recursion".
    • In what situation would you use a loop over recursion? Speed vs. elegance?
    • Consider this puzzle: By starting from the number 1 and repeatedly either adding 5 or multiplying by 3, an infinite amount of new numbers can be produced. how would you write a function that, given a number, tries to find a sequence of additions and multiplications that produce that number? (See findsequence.js and findsequencetest.html)
    • Explain "mutability".
    • Explain "abstraction".
    • Explain "inheritance".
    • Explain "polymorphism"
    • Explain "encapsulation"
    • Explain "modularity"