I have one var with some string values assigning this to other var.
var stringList1=[
'value1',
'value2',
'value3',
'value4',
];
var stringList2=stringList1;
stringList2.remove("value3");
Problem: Deleting some value from stringList2 also deletes the value from stringList1. What I am making wrong here. I need to assign the first var value to others but the first should remain unchangeable so I can use it somewhere else in the code.