Basic JavaScript - Declare JavaScript Variables

**Tell us what’s happening: Can’t seem to get the code right. **
Describe your issue in detail here.
I think I have the right idea but I am writing it down correctly.
Your code so far

<var myName="Miranda"></var>

Your browser information:

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

Challenge: Basic JavaScript - Declare JavaScript Variables

Link to the challenge:

First of all, why have you added fake html tags. <var>?

You also don’t have to give it a value - that is initialization which will be handled later. Just do what you are told. You are told to create a variable. If I wanted to create a variable “foo”, I would do it as:

var foo;
1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.