Skip to content

MirTasinDev/GitHub-issues-tracker-assignment-5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1️⃣ What is the difference between var, let, and const? ANS:var: An older way to declare variables in JavaScript. It has function scope. let: A block-scoped variable. Its value can be changed later. const: Also block-scoped, but its value cannot be reassigned after declaration 2️⃣ What is the spread operator (...)? ANS: The spread operator is used to expand or copy elements of an array or properties of an object. 3️⃣ What is the difference between map(), filter(), and forEach()? ANS: forEach(): Loops through each element of an array. It does not return a new array. map(): Transforms each element and returns a new array. filter(): Selects elements based on a condition and returns a new array. 4️⃣ What is an arrow function? ANS: An arrow function is a shorter and modern way to write functions in JavaScript. 5️⃣ What are template literals? ANS: Template literals are strings written using backticks that allow embedding variables or expressions using inside the string.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors