Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to succeed at "Storing Values with the Assignment Operator" #9149

Closed
leemurdock opened this issue Jun 15, 2016 · 7 comments
Closed

Unable to succeed at "Storing Values with the Assignment Operator" #9149

leemurdock opened this issue Jun 15, 2016 · 7 comments

Comments

@leemurdock
Copy link

Challenge Storing Values with the Assignment Operator has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

Write the code I've written below and attempt to run the test.

My code:

// Setup
var a;
var b = 2;

// Only change code below this line
var a = 7;
var b = var a;
@sujeet100
Copy link

The code you have mentioned has got a syntax error and hence no tests would be run.
I think the code stub has intentionally kept the syntax error, so that students can resolve it, before running any tests.
If you change your code to following, then the tests would pass.

// Setup
var a;
var b = 2;

// Only change code below this line
var a = 7;
var b = a;

@ghost
Copy link

ghost commented Jun 15, 2016

Please use the Help chat room for getting challenge related help. Happy Coding!

@ghost ghost closed this as completed Jun 15, 2016
@solo800
Copy link

solo800 commented Jul 6, 2016

I have also run into the issue described above even without the syntax error.

// Setup
var a;
var b = 2;

// Only change code below this line

b += 5;
a = b;

@aj-willi
Copy link

aj-willi commented Dec 19, 2016

here is the answer

removed solution by mod

@Sh0t1337
Copy link

First pass:
a = 7; b = 7;
// ^^^^^ Read.

@Marcelloe
Copy link

Marcelloe commented Apr 3, 2017

// Setup
var a;
var b = 2;
// Only change code below this line
var a = 7;
var blank = blank;

@Parajux
Copy link

Parajux commented Aug 10, 2017

i had problem with this but after a while I tried :

// Setup
var a;
var b = 2;

// Only change code below this line
var a = 7;
var b = a;

and it worked.

@freeCodeCamp freeCodeCamp locked and limited conversation to collaborators Aug 10, 2017
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants