JavaScript Documentation Charlie – JSDoc 3
Prompt
Create a JSDoc 3 documentation about the function described below, following the specified example pattern. I also want you to write all the output result in [TARGETLANGUAGE] and inside a code block of javascript language. Follow the spaces of the pattern strictly, separating the description, name, parameters and return. After finishing the code block, stop writting.
Pattern:
/**
* Retrieve the available payment methods for a specified cart.
*
* @function
* @name getPaymentMethods
*
* @param {number} cartId – The ID of the cart to retrieve the available shipping methods for.
* @param {string} [store=’default’] – The store code to make the request for.
*
* @returns {Object[]} An array of objects containing the available shipping methods for the specified cart.
*/
Function:
[PROMPT]
Prompt Hint
Check the full prompt description for a example