mdn / interactive-examples

Home of the MDN live code editor interactive examples
Creative Commons Zero v1.0 Universal
726 stars 506 forks source link

Interactive example array-findmax #2782

Closed SrCidm closed 2 months ago

SrCidm commented 2 months ago

Title: Add example for Array.findMax()

Description

I have added a new interactive example demonstrating the usage of a custom findMax function in JavaScript. This example shows how to find the maximum value in an array using a custom implementation.

Motivation

This change provides a clear, practical example of finding the maximum value in an array, helping users understand the concept more intuitively. It fills a gap in the documentation where such an example was previously missing.

Additional details

Related issues and pull requests

github-actions[bot] commented 2 months ago

It looks like this is your first pull request. 🎉 Thank you for your contribution! One of the project maintainers will triage and assign the pull request for review. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct.

SrCidm commented 2 months ago

Thank you for the feedback. I understand that interactive examples should only be for built-in functions.