- 3
What is this Output?
Const population = 5; Console.log(population++);
1 ответ
+ 2
Well it is a error because increment operator change it's own value it's like
var1 = var1 + 1
As reassigning is not allowed with const so it will give error
Const population = 5; Console.log(population++);