Declare String Variables 1

Tell us what’s happening:
I am not sure why this ain’t working.
any help ?

Your code so far

var myfirstName = "Godwin";

var mylastName = "Agbenoto";

// Example
var firstName = "Alan";
var lastName = "Turing";

// Only change code below this line

var myfirstName = "Godwin";

var mylastName = "Agbenoto";



Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0.

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

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

Did you repeat these lines twice?

No please, i only posted it twice in this topic because i am new here and didn’t know where to type what… lol

What do the failing tests say?

// running tests

myFirstName should be a string with at least one character in it.

myLastName should be a string with at least one character in it.

// tests completed

Look very carefully at what the variables are supposed to be called. Your variable names must match exactly.

1 Like

Great it worked… Thank you