sebdev
5/2/2019 - 1:09 PM

Saved from https://classroom.udacity.com/nanodegrees/nd001/parts/3d3d1bdc-316b-46c2-bdcf-b713c82804da/modules/4116dc31-6d06-4774-b082-d60ca0

const order = [20.17, 18.67, 1.50, "cheese", "eggs", "milk", "bread"];
const [total, subtotal, tax, ...items] = order;
console.log(total, subtotal, tax, items);

 //Prints: 20.17 18.67 1.5 ["cheese", "eggs", "milk", "bread"]