Basic JavaScript - Declare JavaScript Variables

This is the second one
Tell us what’s happening:
Describe your issue in detail here.

Your code so far

var myName = "Brailynn"

myName = 8

let ourname = "freeCodecamp"

const pi = 3.14

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Declare JavaScript Variables

Link to the challenge:

Im trying to learn how to code im bad at it and im trying to learn but your program thingy is not working

Use the var keyword to create a variable called myName.

You should declare myName with the var keyword, ending with a semicolon

Two issues here.

  1. You shouldn’t create all these other variables

  2. You should create the variable myName, but don’t put anything inside of the variable yet

What do i need to edit?

Can you tell me what to delete
Like you edit it then send me what i should put

I can’t write the answer for you.

This means you need to delete everything that is not myName

This means you need to delete the = "Brailynn" part of your line with myName.

So put 
myName = 8

let ourname = "freeCodecamp"

const pi = 3.14

This shouldn’t be there.

You deleted too much. Put back the var and remove the = 8

1 Like
var myName = "Beau"

var
This ?

var myName = "trippy";

I did it :slight_smile: Thanks for the help tho

1 Like

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