Basic JavaScript - Declare String Variables

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

var a;
a = "myFirstName";
var b;
b = "myLastName";

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 String Variables

Link to the challenge:

Welcome to the community!

This step does not ask to declare the variable before assigning it to a value.

It wants us to complete it all in one step.


var big = “bigger”;

No need for me to previously declare big.

var big;

I hope this helps you!

Happy coding! :slight_smile:

1 Like

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