optional parameter syntax in JavaScript

In JScript/JavaScript, what is the official way of not passing (ignoring) an optional parameter to a function?

I'm am using one of the ADO functions, which takes three optional parameters:

In VBScript it is easy:
ObjCommand.Execute , , adCmdText

here, the first two parameters are ignored, and only the third is passed.

But in JavaScript:

ObjCommand.Execute( , , adCmdText);

This (obviously) creates compilation errors.  So what value do I give for parameters 1 and 2 above when I don't want to pass in a value?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gmazzaAuthor Commented:
Edited text of question.
gmazzaAuthor Commented:
Adjusted points to 50
Probably you'd want to pass in an empty string "" or null, depending on what the variable is intended for. The function accepting the variables must have default values built into it, of course.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gmazzaAuthor Commented:
Apparently, null works. I was looking several places for an official answer for what the optional value is--can't seem to find one--the Microsoft ADO /JScript examples don't appear to give and answer.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.