Explain the differences between let, const, and var.
Example:
const PI = 3.14; let x = 10; var y = 5;
복습용 저장
복습용 저장
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.
Know the top ES6 interview questions and answers for freshers and experienced candidates to prepare for job interviews.
Know the top ES6 interview questions and answers for freshers and experienced candidates to prepare for job interviews.
Search a question to view the answer.
Example:
const PI = 3.14; let x = 10; var y = 5;
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const person = { name: 'John', age: 30 }; const { name, age } = person;
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const arr = [1, 2, 3]; const newArr = [...arr, 4, 5];
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const fetchData = new Promise((resolve, reject) => { /* async operation */ });
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
async function fetchData() { const result = await fetch('https://example.com'); }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
export const PI = 3.14; import { PI } from './math';
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const numbers = [1, 2, 3, 4, 5]; const sum = numbers.reduce((acc, num) => acc + num, 0);
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const mySymbol = Symbol('description');
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const uniqueNumbers = new Set([1, 2, 3, 2, 1]);
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const numbers = [1, 2, 3, 4, 5]; const index = numbers.findIndex(num => num > 2);
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.