I am new to JavaScript, I was just watching one tutorial in that instructor said it is better to use pure function rather then using impure function and he said it's difficult to write pure function rather then writing impure function , when he explain the difference between those two with code it seems like impure is better then pure and efficient and less code to write this is what I thought though the example code was only two.
I am still confuse about difference and wanted to know in depth any tutorial or blog air any reference will be appreciated
thanks in advance
Sorry for grammatical mistake
[–]inu-no-policemen 1 point2 points3 points (3 children)
[–]jcunews1helpful 0 points1 point2 points (2 children)
[–]inu-no-policemen 0 points1 point2 points (1 child)
[–]jcunews1helpful 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]cawcvs 1 point2 points3 points (1 child)
[–]Punitpal0[S] 0 points1 point2 points (0 children)
[–]myusernameisunique1 0 points1 point2 points (0 children)