Skip to content

Use of var for initialising variables #5756

@Fdawgs

Description

@Fdawgs

Noticed this whilst looking at #5745, Fastify has a few vars knocking about in both fastify itself and supporting plugins, primarily in loops.

Is there a performance reason for using var over let or const?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions