Variables, scope, closures, prototypes, promises, async/await, array methods.
این مجموعه فلشکارت برای افرادی طراحی شده است که با مفاهیم پایه و پیشرفته جاوا اسکریپت آشنایی نسبی دارند و میخواهند دانستههای خود را تثبیت کنند. این کارتها به شما کمک میکنند تا ساختار زبان جاوا اسکریپت را بهتر درک کنید.
محتوای این دک شامل مباحث کلیدی مانند متغیرها، اسکوپ، کلاژرها، پروتوتایپها، پرامیسها، توابع async/await و متدهای پرکاربرد آرایهها است. هر کارت یک سوال دقیق در رو و پاسخی کوتاه و کاربردی در پشت دارد.
برای نتیجهگیری بهتر، پیشنهاد میشود این فلشکارتها را به صورت روزانه و بر اساس سیستم تکرار با فاصله (Spaced Repetition) مرور کنید. این روش کمک میکند مفاهیم به جای حافظه موقت، در حافظه بلندمدت شما ثبت شوند.
۱۲ کارت اول از ۹۰ — رو و پشت هر کارت
What is a JavaScript variable?
A named container used to store data values in memory.
How does var differ from let and const regarding hoisting?
Variables declared with var are hoisted and initialized with undefined, whereas let and const are hoisted but remain uninitialized in the temporal dead zone.
What is the primary characteristic of a const variable?
Its identifier cannot be reassigned after initial declaration, though referenced objects or arrays can still be mutated.
What is lexical scope in JavaScript?
The ability of a function scope to access variables from its outer enclosing parent scope based on where the code is written.
What is global scope?
The outermost execution context where variables are accessible from any other context in the script.
What is function scope?
Variables declared inside a function are accessible only within that specific function and its nested scopes.
What is block scope introduced by ES6?
The visibility of variables declared with let or const limited strictly to the nearest enclosing pair of curly braces.
What is a closure in JavaScript?
A function that remembers and retains access to its outer lexical scope even when executed outside that scope.
Why are closures commonly used in JavaScript?
They enable data privacy and state encapsulation by allowing inner functions to access outer variables while keeping them hidden from the global scope.
What is a classic pitfall involving closures and loops with var?
Because var lacks block scope, all iteration callbacks share the same variable reference, resulting in the final loop value instead of expected per-iteration values.
What is a prototype in JavaScript?
An internal object mechanism from which other objects inherit properties and methods.
What is the prototype chain?
The linkage of objects pointing to their parent prototypes, allowing property and method lookup to travel upwards until reaching null.
این مجموعه برای برنامهنویسان سطح مبتدی رو به متوسط و افرادی که خود را برای مصاحبههای کاری آماده میکنند، کاربرد دارد.
بهتر است هر روز زمان کوتاهی را به مرور کارتها اختصاص دهید. ابتدا سوال را بخوانید، پاسخ را در ذهن خود بیاورید و سپس کارت را برگردانید تا جواب درست را بررسی کنید.
بله، بسیاری از این سوالات از مباحث رایج در مصاحبههای فرانتاند و جاوا اسکریپت انتخاب شدهاند تا در پاسخگویی به سوالات فنی به شما کمک کنند.
هنوز کسی آزمون نداده؛ اولین نفر باش.
تا ۲۰ سؤال چهارگزینهای از همین دسته، ۳۰ ثانیه برای هر سؤال. خودت را بسنج و رتبهات را میان بقیه ببین. هر نفر فقط یکبار میتواند شرکت کند.
برای شرکت در آزمون وارد شو