Getting error during var

Tell us what’s happening:
i"m getting error while executing this code, doing this wrong??

Your code so far


// Example
var ourName;

// Declare myName below this line
var myName = "priy";

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36.

Challenge: Declare JavaScript Variables

Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/declare-javascript-variables

What does the error say?

1 Like

The error message doesn’t warn you about any extra stuff in your code, but are you being asked to declare a variable, or to declare and define a variable?