educative.io

Lack of Understanding with Start and End

I don’t really under why start was selected to be 0 and then end = 10. I am not seeing necessarily how that input causes what is printed to be printed


Course: https://www.educative.io/collection/5084051834667008/5872479363399680
Lesson: https://www.educative.io/collection/page/5084051834667008/5872479363399680/6008382245306368

Hi @Kwabena_Darkwa_Obeng

By default, we will return the first result from the database, so start will have a default value of 0.
And by default, we will return a maximum of 10 courses, so end will have a default value of 10. There is an additional validation to the end query parameter, declaring that it has to be less than or equal to 100.
Hope this will help, Happy Learning :slight_smile: