Skip to content

Constant variables placement with in a script. #142

Description

@ebmarquez

What is the general guidance on the use of Constance and where to place them within a script?
For example, I need to declare a URI of $api = "http://127.0.0.1:500/api/path". Is it better to place this variable next to the invoke-RestMethod or place it at the beginning of the script since it's a constant?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions