Skip to content

nhtzeropoint5/Assignment-05

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a readme

1️⃣ What is the difference between var, let, and const?

var is function scoped, let is and const is block scoped. var allows redeclaring, let and const don't. let and var allow reassigning, const doesnt

2️⃣ What is the spread operator (...)?

spread operator breaks down an array into individual items

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

map modifies each element, performs a function and creates a new array. filter creates a new array with elements that meet the condition. forEach() execute a function for each element but does not create new array. it works like a loop, but it is a method.

4️⃣ What is an arrow function?

it is a shortcut way to write a function like this () =>

5️⃣ What are template literals?

backticked strings ``. allows multiline, also allows dynamic variables by variable interpolation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors