![]() ![]() ![]() 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 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.Familiarity with HTML/CSS and JavaScript (especially ES6+ syntax). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |