bro actually if we use spread operator it will create new array with the old values and implement the functionality which we mention so ithunala memory conception athigam agatha bro
Theoretically yes, Saving in new variable consumes a memory, but it won't matters because it is how memory allocation works. Most of the time, you don't even have performance issues. So using spread operator is not a big problem and it offers few benefits. Even all the Professional programmers are using it.
FYI: Also don't forget the spread Operator only copies the first level and it's remaining levels wil be referenced.
const num = [1,2,3];
const sqnum = num.map(m => m**2)
console.log(sqnum)
Higher order function are also pure function ❤
That's a wonderful info. I was wondering about these function for sometime now. Thanks Anbu.
Happy to help
bro actually if we use spread operator it will create new array with the old values and implement the functionality which we mention so ithunala memory conception athigam agatha bro
Theoretically yes, Saving in new variable consumes a memory, but it won't matters because it is how memory allocation works. Most of the time, you don't even have performance issues. So using spread operator is not a big problem and it offers few benefits. Even all the Professional programmers are using it.
Thanks
Welcome
Bro explanation is good and gorgeous.
But console log use pana enaa break akum broo
Puriyala?
Deivamay React mattum Kodi punniyam ungaluku❤
We will resume after Modern JS series.
Idhu yanna broo adutha video um vandhuruchu
😆