What will be the output of this code? #javascript

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

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

0, 1, 2
in line return() => count++
++ increment after value is returned.
if it is ++count
output will be 1, 2, 3

kalpeshdhotre
Автор

It returns 0 1 2 because of the fact that closure(that anonymous function) retains access to that count variable throughout execution of program so the value of count gets updated each time when we call c( ).

JohnWickXD
Автор

Bring on the callback hell, debouncing questions

zerosndones
Автор

It does nothing just returns like this: function

indiansniper
Автор

Do you also teach the language of Love?

優さん-nm