Question on getMovies()

In the function’s parameter, it uses:
{
filters = null,
page = 0,
moviesPerPage = 20,
} = {}

How to understand it? Please help. Thanks.

Richard Xu

Google is your friend:

Destructuring assignment - MDN
Default parameters - MDN

Whilst this course gives some basic coverage for features of JavaScript and NodeJS, the main focus here is usage of the driver and MongoDB itself.

If you need to learn JavaScript, it’s better to use external resources for that.