Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #33713
Closed
Open
Issue created Apr 21, 2021 by Administrator@rootContributor

Use const in js examples

Created by: fulldecent

In the documentation at:

https://github.com/twbs/bootstrap/blob/f61a0218b36d915db80dc23635a9078e98e2e3e0/site/content/docs/5.0/examples/sidebars/sidebars.js#L2

https://github.com/twbs/bootstrap/blob/4d973259f55834ef9c9543fbcc265f11219ba8b2/site/content/docs/5.0/components/tooltips.md#example-enable-tooltips-everywhere

there are examples of using JavaScript to drive Bootstrap. That's great.

These use var where const can be more appropriate.

Recommending to prefer using const whenever possible.

Assignee
Assign to
Time tracking