React Native

JavaScript Essentials

Variables (let/const/var), types, closures, this, arrow functions, destructuring, spread/rest

25 питань зі співбесід·
Junior
1

What is the main difference between let and var in JavaScript?

Відповідь

let has block scope while var has function scope. This means a variable declared with let is only accessible within the block where it's defined (between curly braces), whereas var is accessible throughout the entire function. This difference is crucial to avoid bugs related to hoisting and variables leaking outside their intended context.

2

What happens when accessing a let variable before its declaration?

Відповідь

A ReferenceError is thrown because the variable is in the Temporal Dead Zone (TDZ). Unlike var which is hoisted with undefined value, let variables are hoisted but remain inaccessible until their declaration. This temporal dead zone helps detect programming errors where a variable is used before being defined.

3

What is the main characteristic of const in JavaScript?

Відповідь

const prevents reference reassignment but not content mutation. For primitive types, this means the value cannot change. For objects and arrays, the reference stays the same but properties or elements can be modified. Using const by default is good practice as it expresses the intent not to reassign the variable.

4

What are the primitive types in JavaScript?

5

What is the result of typeof null in JavaScript?

+22 питань зі співбесід

Інші теми співбесід React Native

React Fundamentals

Junior
20 запитань

React Native Basics

Junior
22 запитань

React Hooks

Junior
20 запитань

TypeScript for React & React Native

Junior
22 запитань

React Native Components & API

Junior
20 запитань

React Native Styling & Layout

Junior
18 запитань

React Native Navigation

Mid-Level
22 запитань

React Native State Management

Mid-Level
24 запитань

React Native Networking & API

Mid-Level
20 запитань

Data Persistence

Mid-Level
20 запитань

Forms & Validation

Mid-Level
18 запитань

React Native Animations

Mid-Level
22 запитань

Native Modules & Bridge

Mid-Level
20 запитань

Platform-Specific Code

Mid-Level
18 запитань

Permissions & Device APIs

Mid-Level
20 запитань

Push Notifications

Mid-Level
18 запитань

React Native Testing

Mid-Level
20 запитань

React Native Debugging

Mid-Level
18 запитань

Build & Deployment

Mid-Level
20 запитань

Expo vs React Native Bare

Mid-Level
18 запитань

Performance Optimization

Senior
24 запитань

Memory Management

Senior
20 запитань

Architecture Patterns

Senior
22 запитань

React Native New Architecture

Senior
24 запитань

Security Best Practices

Senior
20 запитань

Offline-First Architecture

Senior
20 запитань

React Native CI/CD

Senior
20 запитань

Monorepo & Code Sharing

Senior
18 запитань

Advanced Topics

Senior
22 запитань

App Lifecycle & Background Execution

Mid-Level
20 запитань

Authentication & Session Management

Mid-Level
22 запитань

Monitoring & Crash Reporting

Senior
20 запитань

Опануй React Native для наступної співбесіди

Отримай доступ до всіх питань, flashcards, технічних тестів, вправ code review та симуляторів співбесід.

Почни безкоштовно