Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create polyfill for JavaScript #5838

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DanielAsare-ux
Copy link

This pull request adds a new documentation file that provides a polyfill for the Array.prototype.includes method in JavaScript. The documentation aims to help developers understand how to implement polyfills for older JavaScript environments that do not natively support certain methods.

Key changes:

  • content/javascript/concepts/methods/Polyfill/polyfill.md: Added a detailed guide on creating a polyfill for Array.prototype.includes. The guide includes an introduction to polyfills, the syntax for writing a polyfill, and an example implementation with an explanation.<!--
    👋 Hi, thanks for submitting a PR to Codecademy Docs! ❤️
    Please fill out all fields below to ensure your PR is reviewed quickly.

IMPORTANT

If you would like to receive credit for your contribution to an entry, make sure to have your Codecademy user profile linked to your GitHub account:

  1. Go to your Codecademy dashboard.
  2. Click on your profile image in the top-right and then choose "Profile.".
  3. Then click "Edit Profile.".
  4. In the "GitHub Username" field, add your username (without the @).
  5. Click "Save Changes."

Of course, you can opt not to do this and be listed as an "anonymous contributor" instead. :)
-->

Description

  • Added polyfill concept for JavaScript
  • Editing an existing entry (fixing a typo, bug, issues, etc.)

Issue Solved

Type of Change

  • Add a new entry
  • Adding a new entry
  • Editing an existing entry (fixing a typo, bug, issues, etc.)
  • Updating the documentation

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • I have performed a self-review of my own writing and code.
  • I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed.
  • I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

@CLAassistant
Copy link

CLAassistant commented Dec 18, 2024

CLA assistant check
All committers have signed the CLA.

@SaviDahegaonkar SaviDahegaonkar self-assigned this Dec 19, 2024
Copy link
Collaborator

@SaviDahegaonkar SaviDahegaonkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @DanielAsare-ux,
I reviewed your file, and the entry does not follow the style-guide documentation guidelines. Please refer to the documentation and make the changes as soon as possible.

Thanks,
Savi

@SaviDahegaonkar SaviDahegaonkar added the invalid This doesn't seem right; not eligible for Hacktoberfest label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right; not eligible for Hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants