case 1 →
Case 2 →
var x = 50;
x = 80;
output :-> 50
Then What is the difference between const and var.
If const did not change after the print then also var also not change after print.
if we change var then we have to print var then same for const.