how to seperate two elements from an objet in javascript code example Example: split array javascript // Returns new array from exising one arr.slice(start, end);