Ayesha MalikFollowJan 22, 2021·1 min readThe Rest and Spread operator in javaScriptBoth rest and spread operators have similar syntax i.e 3 dots (…)The spread operator is used to create copies of array/objects.The rest operator is used to collect all the remaining values.