http://qs321.pair.com?node_id=11120343


in reply to Re^5: Shouldn't references be readonly?
in thread Shouldn't LITERAL references be readonly? (updated)

They are all literal reference constructors the content is mutable.

Please compare the analogue situation in JS where [] and {} explicitly documented as "literal".

See also Readonly which makes the explicit distinction about overwriting a variable holding an array and protecting the deep content.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

UPDATE

)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Array

Arrays can be created using the literal notation: let fruits = ['Apple', 'Banana']; console.log(fruits.length); // 2 console.log(fruits[0]); // "Apple"