i am a new learner on javascript language but i have worked before with other programming language such c#
while i was doing a simple operation on javascript, i was astonished about the results makes me wonder how javascript works and why it is different like that
Example i had an array of ['a','b'] , i want to reverse it and check is it the same or not
var char = ['a','b'];
var char_reversed = char.reverse();
normally , char should = ['a','b'] and char_revered should = ['b','a']
but i find that char = char_reversed = ['b','a']