Sign in
Log inSign up

Writing JS func so that it shows the multiple value for its parameter which can be used while passing the parameters when the function is invoked

Umesh Bhat's photo
Umesh Bhat
·May 28, 2019

Screenshot (61).png

in image above image, we can see that second parameter in 2nd line can take one of the three values ,'base64' , 'binary' & 'hex'

 function showName(name)
{
console.log(name) //i want my function here to show me the possible values available
}

showname('umesh')
//i want my function here to show me the possible values available

so in my function above when showname() is called i want to show me different available values it can take like ,'umesh','akshay', 'madhu'