If we have declared a lot of variables, it makes sense to store them somewhere. Now that we know a bit about variables, let's move on to arrays and array-methods. I will be skipping it here for the sake of readability. Note: In JavaScript, putting a semi-colon after the end of statement is optional. Will this throw an error? Go through the table and try to find the answer. If we just do, it will work because it can be updatedĬonsole.log(c) // Syntax Error as const variables cannot be redeclared or updated var a = 3Ĭonsole.log(a) // 4 as var variables can be redeclared + updatedĬonsole.log(b) // Syntax Error as let variables cannot be redeclared For now, let's focus on the other differences. Let's try to understand them through examples. Now, in JavaScript we have 3 ways to declare variables: var, let, and const. You can just declare it, and JS will figure it out on its own. You don't have to state the type of variable. A variable can be a number, string, and many other types. Variables are the building blocks of every programming language. Let's start off with some basic concepts every JS developer needs to know. With that out of the way - let's go! JavaScript Basics □ If you want to dive in deeply and learn more JS concepts, check out freeCodeCamp's curriculum. Advanced JavaScript Concepts to Know - Async/defer, Polyfills, Debouncing, and ThrottlingĬaveat: The focus here will largely be to cover concepts relevant to the interview and not to create a comprehensive booklet for learning the language.Asynchronous JavaScript – Event Loops, Timers, and Promises.Objects in JavaScript – Prototypes and "this".Functional Programming in JavaScript – Scope, Closures, and Hoisting.JavaScript Basics – JS Variables and Array Methods.Familiarity with HTML/CSS and JavaScript (especially ES6+ syntax).Basic knowledge of the web and programming.Go through this and you'll be ready to rock. So, if you are prepping for your next JS interview this is the perfect cheatsheet for you to review and solidify your skills. In this article, I have tried to list the concepts which will cover 80% of any good JS interview. ![]() I've carefully gone through over 50 resources, I've been through 10 JavaScript interviews, and I've landed a job at a unicorn startup.Īnd throughout this entire process, I started to see a pattern in the most frequently asked JS interview questions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |