It's usually said that in functional programming data structures are immutable. I know that immutable data structure is a data structure that cannot be changed.
However, does it also mean that variable references also can't be changed?
For example,
var arr = [1,2,3]
arr = [4,5,6]
In this code I didn't change the array [1,2,3], but created a new one. Still, I changed the reference of the variable 'arr'. Does this code follow the principle of immutability data structure?