MongoDB is a document database with the scalability and flexibility that you want with the querying and indexing that you need.

Spread Operator

... It takes array or object after operator and pull out all elements of array or properties of object and put it in whatever is around that operator.

const hobbies = ['Sports', 'Cooking'];
const copiedArray = [...hobbies];


const person = {
    name: 'Max',
    age: 29
}
const copiedPerson = {...person};



Rest Operator

It looks like Spread operator .... It merge multiple arguments into array. So if you use ... in the argument list of function, then its the Rest operator

const toArray = (...args) => {
    return args;
}

console.log(toArray(1,2,3,4));