Skip to content

mdsiddik51/Github-Issue-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is the difference between var, let, and const?

Answer : var => var is a function-scoped variable that is hoisted, so it can be used before declaration and its value going to be undefined.

Answer : let => let is block-scoped and hoisted but cannot be accessed before declaration because of the Temporal Dead Zone

Answer : const => const is block-scoped, hoisted but cannot be accessed before declaration Temporal Dead Zone, and its value cannot be reassigned after initialization

What is the spread operator (...)?

Answer : The spread operator (...) is used to spread or copy values from one array or object into another arrat or object.

What is the difference between map(), filter(), and forEach()?

Answer : map() => map() is a function thar use to runs a function on each item of an array and returns a new array without changing the original array

Answer : filter => filter() runs a test on each element of an array and returns a new array with only the elements that pass the the logic

Answer : forEach() => forEach() is used to perform actions on each element of an array but does not return anything

What is an arrow function?

Answer : An arrow function is a shorter way to write a function in JavaScript using => arrow without the function keyword

What are template literals?

Answer : Template literals are a way to write strings in JavaScript using backticks (`) it allow us to put variables directly inside the string using ${} dollar symbol and curly braces

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors