Guys I have a question.
Following the array index, to find, add or remove an element it should be like this isn’t?
in this code, it is behaving differently which is tricking my mind.
let weatherConditions = ['rain', 'snow', 'sleet', 'hail', 'clear'];
//>>>>WHY (1,3) IS RETURNING ['snow', 'sleet']; AND NOT ['rain', 'sleet', ]<<<< ????
let todaysWeather = weatherConditions.slice(1, 3);
// todaysWeather equals ['snow', 'sleet'];
// weatherConditions still equals ['rain', 'snow', 'sleet', 'hail', 'clear']
thank you.