Custom Options
This section requires some developer knowledge and covers optional, in-depth features that you might find useful. This would be available in the next version
Custom Code Scenerio
We love it when developers want to explore and we make sure that your documentation is as flexible as possible. Here is an example of how you can add custom code to your documentation.
//palindromes
function isPalindrome(str) {
const len = Math.floor(str.length / 2);
for (let i = 0; i < len; i++) {
if (str[i] !== str[str.length - i - 1]) {
return false;
}
}
return true;
}
console.log(isPalindrome("madam")); // true
console.log(isPalindrome("toyota")); // false
💡
We haven't tested all the edge cases for this one, and we don't provide support for it at the moment. However, you can explore it.