
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'
Ravi Teja
Software Engineer
Use JSDoc.
You should document your method as follows
/** * Sample method description * @param name {('PossibleValue1' | 'PossibleValue2' | 'PossibleValue3')} */ function showName(name) { console.log(name); }I'm not sure what IDE you are using, but I'm sure this will work with most IDEs.