5 Must Know Interview Questions for Javascript!




🔥 Land the job! Get help with a resume and cover letter https://grindreel.com
📚My Courses: https://grindreel.academy/

💻 Learn Code FREE for 2 months: https://bit.ly/2HXTU1o
Treehouse Discount: https://bit.ly/2CZDFNn | IT Certifications: https://bit.ly/2uSCgnz
Want to work at Google? Cheat Sheet: https://goo.gl/N56orD

Code Bootcamps I’ve worked with: 🏫
Lambda School: FREE until you get a job: https://lambda-school.sjv.io/josh

Channel Memberships are here! ❤️ http://bit.ly/32Wj1Jf

My Gear ⚙️: https://kit.com/JoshuaFluke

Social Media 🤳
https://www.instagram.com/joshuafluke/ 📸
https://twitter.com/joshuafluke 🐦

Support the channel! ❤️
https://www.patreon.com/joshuafluke
Donations: paypal.me/joshuafluke

Merch is here! 👕 https://teespring.com/stores/grindreel-2

My P.O Box 📦 if you want to mail me something:

Discord 👊 https://discord.gg/rka6rvg
Website 📡 http://www.grindreel.com/
Email me! 📧 grindreel@gmail.com

Original source


20 responses to “5 Must Know Interview Questions for Javascript!”

  1. That question you said is using closures is not utilizing closures. There are a couple of things you had mistaken:
    – The inner function does have access to the num declared outside in outer function

    – The increment on the num in inner is operating on the num declared inside inner, due to hoisting.

    To use closures would require a reference to a function to rely on its captured environment to access a variable that would otherwise be 'not defined' in the calling environment.

  2. With all due respect these are noob questions. Nothing about prototypes, classes and inheritance, closures, functional programming, composition, design patterns, ES6 and beyond.. so many things left behind the scenes

  3. console.log(secretVariable()()); …I just accessed your “private variable”.
    The correct answer is JavaScript doesn’t have or allow private variables. But, with closures you can limit the scope of a variable.

  4. Don't work for any company that asks anything like these. Moreover, if you get an offer with these answers, run away. There's no excuse in 2018 when this video was made and especially not in 2019 to be using ES3 and relying on people understanding oddities with hoisting or this. If you write modern JS, these things literally never come up, and they should fail a lint check and a code review. Think about what it means for a company to be asking you a question. An interview is just as much an opportunity for you to learn about the company.

  5. I'm sorry but I've been using js for maybe 2 months (if i segment the hours ive worked into 40hr weeks) and these questions kinda seem to easy. are these genuine questions they'll ask you? if so I've been underestimating my abilities lmao.

Leave a Reply