23 | pure vs impure function JavaScript | Pure function in JavaScript | impure function in JS

preview_player
Показать описание


If you want a source code then just connect with me on Telegram

Advanced Angular 10 Tutorials in English

Angular Authentication In English

Angular Authentication In Hindi

Рекомендации по теме
Комментарии
Автор

the value of i is printed 0 at the first because in the closure function you have written i++, this is called post increment, when the function is called again then the value gets updated. Both a and b functions are same, you didn't differentiated the pure and impure functions clearly over here.

rohitdhende
join shbcf.ru