• Checks if a given string is a valid variable name.

    Parameters

    • n: string

      The string to check.

    Returns boolean

    True if the string is a valid variable name, otherwise false.