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

Update ExampleHelper.md to use const #7256

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 19, 2022

  1. Update ExampleHelper.md to use const

    The sails docs use `var` in most example code. This is an outdated practice as the newer alternatives of `let` and `const` offer more granular control over variable scoping in a way that is preferable 95+% of the time. The use of `var` in the docs gives new users the impression that sails is dated. Updating the docs to use `const` or occasionally `let` in the examples will make sails more appealing.
    
    I'm opening this PR as a one-off for a single page in the hopes of getting feedback on whether the sails team agrees that this change is appropriate before I more holistically propose changes to a broader range of sails docs to update them similarly.
    itsalaidbacklife committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    9240729 View commit details
    Browse the repository at this point in the history