0

How arrays and objects are mutable but string, numbers and all the primitive data types are immutable?

var a = 'priya';
a = 'puja';

Is this immutable ?

Phil
  • 157,677
  • 23
  • 242
  • 245

0 Answers0