so sometimes in javascript you might
have a function that takes a couple of
arguments for example we have a function
called createuser which basically takes
in a name and age and we'll validate
those inputs and save it to a database
and you can see here the actual callee
of the function is pretty simple and
easy to understand but as you have more
arguments let's say for example you had
a last name like uh bob saget and then
you also had an age here and then you
had something else like uh hobbies so
unless you're using something like
typescript which will give you an error
that you're doing something wrong this
would be kind of problematic because now
like you have to remember the actual
ordering of all these different things
that you're passing in right so a
different approach i like to do with all
of my functions even if they only have
one or two arguments is i will do named
properties so basically everything takes
in an options object and to be able to
call this thing you're going to pass in
the actual object with the proper
properties so i'll say name last name
age and hobbies so now it doesn't matter
what ordering these things are passed
saying you can put them in whatever
order that you want and the function is
still going to work exactly like it did
before and this makes your code a lot
more easier to call because you don't
accidentally pass stuff in the wrong
order