Improve console output formatting in Recursion glossary#42478
Improve console output formatting in Recursion glossary#42478hamishwillee merged 3 commits intomdn:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR improves the formatting and organization of console output examples in the Recursion glossary documentation. The changes enhance readability by separating code from its output and adding descriptive section headers.
- Adds descriptive subheaders (Factorial, Fibonacci, Reduce) for each common usage example
- Moves inline output comments to separate "Output:" sections using proper
plaincode blocks - Improves consistency with the existing output formatting pattern used earlier in the document
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Preview URLs (comment last updated: 2025-12-22 00:45:44) |
hamishwillee
left a comment
There was a problem hiding this comment.
@muhammadfahaddev Thank you, and welcome to MDN.
FWIW I like the headings, but having comments for the console output is the standard way of doing example output in MDN. We wouldn't change this for just one page.
A good place to start is with our existing issues list, and in particular good first issues - these are things we know to be problems - fixing them is more useful than tidying layout.
…skeys-guide * origin/add-passkeys-guide: Clarify fetch() error handling behavior for Response (mdn#42497) Add code example to Closure glossary entry (mdn#42477) 42252 add new relative units ff release (mdn#42470) Remove duplicated word (mdn#42496) 42252 add new relative units (mdn#42469) TrustedTypes: Range.createContextualFragment() (mdn#42493) Fix CSS, HTML, and HTTP landing pages to match sidebar content and order (mdn#42460) TT: CSP trusted types/require-trusted... fixes (mdn#42461) Improve console output formatting in Recursion glossary (mdn#42478) Add Sec-CH-Width + consistency fixes (mdn#42453) webextensions/manifest.json/options_page: typo (mdn#42394) webextensions/api/tabs/onupdated: Fix section link (mdn#42393) fix: add missing closing parenthesis (mdn#42482) docs: mark srcData as required in bufferSubData (mdn#42483) docs(learn): remove invalid type attribute from video example (mdn#42479) Drop 'read-only' from role (mdn#42474) Fix: Update bufferSubData parameters to match WebGL 1 spec mdn#42315 (mdn#42411) chore: Replace links with `cssxref` macro in the learn area (mdn#42446)
Description
Motivation
Additional details
Related issues and pull requests