Skip to main content

Variable Previously Declared

Erroneous Code Example

This error occurs when you try to declare a variable that has already been declared in the current scope. In this example, the variable user_name is declared twice.

Solution

Use a different variable name.